| || |
(null) value in DataGrid
I tested application that has DataGrid.
I have to check if data grid contains appropriate values.
I retrieve DataSource:
var dataSource = dataGrid.DataSource;
I check all rows and all cells in row if contains right value. If cell contains value type of int, string etc. everything is ok. If cell contains null I dont know whith whot I must compare this value.
if(row.Cells.Item(i) == null)
but it is evaluate as false.
Anybody know whit what I must compare cell with null value to get true?
Re: (null) value in DataGrid
You should use the following script:
if(row.Cells.Item(i) == "")