We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

HasString Method Problem

Hi,

I am using SpreadSheet WPF and i have this "if" block:

if(SpreadSheetStatic.ExcelProperties.WorkBook.Worksheets[activesheetname].Columns[d].HasNumber)

This is working correctly. But, when i use "HasString" method instead of "HasNumber" method, it is not working - although Cells have String values.

Where is my mistake in this problem?

Regards.


1 Reply

PA Ponraja A Syncfusion Team April 24, 2012 01:31 PM UTC

Hi Salih,

You can achieve your requirement by directly access the HasString property in worksheet range by using the row and column index as shown in the following code snippet.

[Sample Code][C#]
IWorksheet worksheet = spreadSheetControl.ExcelProperties.WorkBook.Worksheets[spreadSheetControl.GridProperties.CurrentSheetName];
IRange range = worksheet.Range[RowIndex, ColumnIndex];
bool Result = range.HasString;

For more information please refer the attached sample and video.

Please let us know if you have any queries.

Regards,
Ponraja




Spreadsheet_2a8d6308.zip

Loader.
Live Chat Icon For mobile
Up arrow icon