-2

I'm looking for something like this :

dataGridView1.CurrentRow.Cells[0].Value != null

thanks for your time.

Backs
  • 24,430
  • 5
  • 58
  • 85

1 Answers1

0

You can get the value of a certain cell in a GridView through the GetRowCellValue() method:

gridView.GetRowCellValue(rowHandle, column) != null;

You can get the rowHandle by focusing on the desired row and using

int rowHandle = gridView1.FocusedRowHandle;
DC_AC
  • 316
  • 2
  • 13