Adds a row to an unbound grid.
[Visual Basic]
Overloads Overrides Public Function AddRow( _
ByVal data As String, _
ByVal separator As Char _
) As Integer
[C#]
override public int AddRow(
string data,
char separator
);
[Delphi]
public function AddRow(
data: String;
separator: Char
): Int32; overload; override;
Parameters
data
The data used to populate the new row.
separator
Character used to separate the data fields.
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 and a comma to separate data fields:
Me.C1TrueDBGrid1.AddRow("Joe,Doe,9/22/1975", ",")
· C#
this.c1TrueDBGrid1.AddRow("Joe,Doe,9/22/1975", ",");
· Delphi
Self.C1TrueDBGrid1.AddRow('Joe,Doe,9/22/1975', ',');
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. |