The Code Project

By Pete2004

http://www.dotnet247.com/247reference/a.aspx?u=http://www.codeproject.com/csharp/PracticalGuideDataGrids1.asp

Methods and Properties

Methods | Description
Collapse | Collapse a specified row or all rows.
Expand | Expand a specified row or all rows
IsExpanded | Returns true if a specified row is expanded otherwise false.
NavigateBack | Navigates back to the previously displayed table in the grid.
NavigateTo | Navigate to a table in the grid.
SetDataBinding | Binds a dataset to the DataSource and selects a table.
Select | This method selects row and highlights it. It is not necessarily the same as the current row.
UnSelect | This method unselects a row and turns of highlighting. It does not change the current row.

Properties | Description
AllowSorting | Set to True allows column sorting using the column headers.
AllowNavigation | Allows navigation within the data grid using for example the arrow or tab keys.
AlternatingBackColor | This sets a background color for alternating rows in the DataGrid making it easier to read across a row.
DataSource | This returns or sets the source of data for the DataGrid. It is either a DataSet or a DataTable.
DataMember | This sets the table to be displayed. When the DataSource is a DataSet the DataGrid display is in a hierarchical mode, setting this to one of the Tables in the DataSet automatically forces it to be displayed.
CurrentCell | Gets or Sets the currently active cell including the CurrentRowIndex
CurrentRowIndex | Gets or Sets the current row