The Grid control displays and operates on tabular data. It allows complete flexibility to sort, merge, and format tables containing strings.
Grid
The properties, methods and events of the Grid control are described in the following table.
The Grid control supports the following features:
The Grid control can be used in the following scenarios:
The Row and Col properties specify the current cell in a Grid. You can specify the current cell in code, or the user can change it at run time using the mouse or the arrow keys. The Text property references the contents of the current cell.
If a cell's text is too long to be displayed in the cell, and the WordWrap property is set to True, the text wraps to the next line within the same cell. To display the wrapped text, you may need to increase the cell's column width (ColWidth property) or row height (RowHeight property).
Use the Cols and Rows properties to determine the number of columns and rows in a Grid control.