By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,557 Members | 1,588 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,557 IT Pros & Developers. It's quick & easy.

find last row in datagrid

P: n/a
Hello

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

Tupolev

Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

----------------------
"tupolev" <Zr*******@hotmail.be> wrote in message
news:JP***********************@hestia.telenet-ops.be...
Hello

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

Tupolev

Nov 20 '05 #2

P: n/a
I found a solution with datagrid.visiblerows() Is this also a good way? I
just need to count the rows
Tupolev
"Ken Tucker" <vb***@bellsouth.net> schreef in bericht
news:ur**************@TK2MSFTNGP09.phx.gbl...
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

----------------------
"tupolev" <Zr*******@hotmail.be> wrote in message
news:JP***********************@hestia.telenet-ops.be...
Hello

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

Tupolev


Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.