last visible row of datagrid?

  • Thread starter Thread starter Lore Leuneog
  • Start date Start date
L

Lore Leuneog

Hello

How can I get the rownumber and the first column value of the last visible
row in the Windows.Forms.DataGrid?

Thank you
Sincerely
Lore
 
int count = dataGrid1.VisibleRowCount;

string strColumnData = dataGrid1[count-2,0].ToString();

I Take the count of the No of rows in the Datagrid and i go to the rowindex,
column index of the datagrid and get the data i need


Regards,
Tarkeshwar
..Net Programmer
Fifth Generation Technologies
 
Back
Top