DataGridViewX.CurrentRow.Cells.Item(0).Value.ToString
If the item is blank and no data is entered it will throw a null exception, so the question is that how can I check if the item is null or not?
Even using this:
If DataGridViewX.CurrentRow.Cells.Item(0).Value.ToString IsNot Nothing Then ...
Will thro the exception!
Please help me.
If the item is blank and no data is entered it will throw a null exception, so the question is that how can I check if the item is null or not?
Even using this:
If DataGridViewX.CurrentRow.Cells.Item(0).Value.ToString IsNot Nothing Then ...
Will thro the exception!
Please help me.