ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.MoveNext Method

Positions to the next row of the datasource.

[Visual Basic]

Overridable Public Sub MoveNext()

[C#]

virtual public void MoveNext()

[Delphi]

public procedure MoveNext(); virtual;

Example

The following code provides an example of the MoveNext method called in the Next button procedure so when the Next button is clicked the grid positions to the next row or record of the data source:

·      Visual Basic

       Private Sub btnNext_Click(ByVal sender As System.Object,  ByVal e As System.EventArgs) Handles btnNext.Click

           ' Move to the next record in the grid.

           Me.C1TrueDBGrid1.MoveNext()

       End Sub

·      C#

       private void btnNext_Click(object sender, System.EventArgs e) 

       {

           // Move to the next record in the grid.

           this.c1TrueDBGrid1.MoveNext();

       }

·      Delphi

       procedure TWinForm.button5_Click(sender: System.Object; e: System.EventArgs);

       begin

         // Move to the next record in the grid.

         Self.C1TrueDBGrid1.MoveNext;

       end;

For more information on this example, see Tutorial 4 - Interacting with Code and Other Bound Controls.

See Also

C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.