Datagridview

Move to next row in a datagridview using a button

Page 1 of 1

1 Replies - 2580 Views - Last Post: 12 September 2009 - 07:37 AM Rate Topic: -----

#1 callsupport1  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 11-September 09

Datagridview

Posted 11 September 2009 - 07:36 AM

Hi All

New to programming so please be grentle.

How do i Move to the next row in a datagridview using a button
Thanks
Stephen

Private Sub btnMoveNext_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnMoveNext.Click

	 Dataviewgrid1.movenext

 End Sub


This post has been edited by callsupport1: 11 September 2009 - 08:35 AM

Is This A Good Question/Topic? 0
  • +

Replies To: Datagridview

#2 motcom  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 290
  • View blog
  • Posts: 1,371
  • Joined: 16-June 08

Re: Datagridview

Posted 12 September 2009 - 07:37 AM

if you have a binding source for your dataset that is bound to the datagridview, you can have the binding source do it.

"BindingSource.movenext"

Else

Look into "currency manager", it handles those things as well.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1