Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to move to the last row on a datagrid

Status
Not open for further replies.

ddiamond

Programmer
Apr 22, 2005
918
US
How do I set the current row on a datagrid to the last row of the datagrid?
 
ddiamond,

As far as I know:

Code:
dataGrid1.VisibleRowCount

I wish it helps ;)
 
This is what I ended up doing:
Code:
int LastRow = Dataset1.Tables["POOL_NUMBERS"].Rows.Count;
DataGrid1.CurrentCell = new DataGridCell(LastRow,1);
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top