Adds a row to an unbound grid.
[Visual Basic]
Overloads Overrides Public Function AddRow( _
ByVal data As String _
) As Integer
[C#]
override public int AddRow(
string data
);
[Delphi]
public function AddRow(
data: String
): Int32; overload; override;
Parameters
data
The data used to populate the new row. Column data is delimited by ';' char.
Return Value
The index of the row that was added.
Example
The following code uses the AddRow method to add a row to an unbound grid:
Me.C1TrueDBGrid1.AddRow("John;Doe;11/29/1985")
Me.C1TrueDBGrid1.AddRow("Jane;Doe;7/12/1980")
· C#
this.c1TrueDBGrid1.AddRow("John;Doe;11/29/1985");
this.c1TrueDBGrid1.AddRow("Jane;Doe;7/12/1980");
· Delphi
Self.C1TrueDBGrid1.AddRow('John;Doe;11/29/1985');
Self.C1TrueDBGrid1.AddRow('Jane;Doe;7/12/1980');
For more details on the AddRow method, see the Displaying Data without Binding to a DataSource topic.
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace | C1TrueDBGrid.AddRow Overload List
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |