Question : IsDBNull(sender.Rows(e.RowIndex).Cells(0).Value) is very slow+vb.net 2005 windows programming

Hi,
Iam checking in datagridview
  If IsDBNull(sender.Rows(e.RowIndex).Cells(0).Value) = True Then Exit Sub which is terribly slow..any alternative for this code

Cheers

Answer : IsDBNull(sender.Rows(e.RowIndex).Cells(0).Value) is very slow+vb.net 2005 windows programming

How about this:

If e.RowIndex >-1 AndAlso sender.Rows(e.RowIndex).Cells(0).Value is Nothing Then Exit Sub
Random Solutions  
 
programming4us programming4us