

If the text within cells cannot fit on one line, you can use the LineBreakMode property to wrap or truncate it.ĭataGridView also supports the following column types:Ī grid column used to display and edit numeric values.Ī grid column used to display and edit date values.Ī grid column that displays Boolean values and allows a user to change a cell value by switching between two states.Ī grid column that allows a user to edit a cell value by selecting an item from the predefined set.Ī column type that allows you to define a custom template for column cells. To associate a column with a data source’s field, use the FieldName property. TextColumn inherits all properties of the base GridColumn class and allows you to adjust column settings ( DisplayFormat, Caption, Width, IsReadOnly, IsVisible, etc.), and manage grid data ( IsGrouped, GroupInterval, SortOrder, SortIndex, SortMode, etc.). When a user activates a text column cell editor, the keyboard for text input appears. Use columns of the TextColumn type to display text values and allow users to edit them.

Grid columns are stored in the DataGridView.Columns collection and displayed in the same order as they were added to this collection.Īn individual column is a GridColumn class descendant that corresponds to the type of data the column displays. To display data, the grid should contain columns bound to the data source’s fields. Namespace: ĭ Declaration public class TextColumn :ĭataGridView represents data fields and records as columns and rows, respectively.

ColumnView.FocusedRowChanged :Fires in response to changing row focus.A grid column used to display and edit text values. In this selection mode, it returns an array that contains a single element and this identifies the focused row's handle.ĥ. ColumnView.GetSelectedRows :Returns an array of the handles of the selected rows. ColumnView.SelectedRowsCount:Returns the number of the currently selected rows.Ī single row can be focused and selected in this mode, so this property always returns -1.Ĥ. ColumnView.SelectAll :Selects all rows within the View.ģ.

This property allows we to get the focused and selected row.Assiging a value to this property focuses and select the specified row.Ģ. ColumnView.FocusedRowHandle :Specifies the focused row's handle. GridControl supports single row selection,multiple row selection and multiple cell selection modes.ġ. This Blog demonstrates the events of DevExpress GridView Control.
