find last row in datagrid

  • Thread starter Thread starter tupolev
  • Start date Start date
T

tupolev

Hello

Is there a way to find the last row in the datagrid BEFORE I save the
changes to the table?

Tupolev
 
Hi,

If you are looking to move to the last row in the datagrid use
the currencymanager class.

Dim cm As CurrencyManager

cm = CType(Me.BindingContext(DataGrid1.DataSource), CurrencyManager)

cm.Position = cm.Count - 1

Ken
 
I found a solution with datagrid.visiblerows() Is this also a good way? I
just need to count the rows
Tupolev
 
Back
Top