ComponentOne FlexGrid for WinForms
Populating a Single Cell with Data
FlexGrid for WinForms Task-Based Help > Populating an Unbound Grid with Data > Populating a Single Cell with Data

To populate a single cell with data when the form loads, set the grid's indexer to the data. Add the following code to the Form_Load event to set the cell text:

To write code in Visual Basic

Visual Basic
Copy Code
Me.C1FlexGrid1(3, 2) = "Cell Text"

To write code in C#

C#
Copy Code
this.c1FlexGrid1[3, 2] = "Cell Text";

This topic illustrates the following:

The text Cell Text is in the fourth row, third column.

See Also