Obtaining and Setting Cell Values
- 2 minutes to read
The grid provides multiple methods that allow you to obtain and modify its cell values, regardless of whether end-users are allowed to edit data. The required cell is identified by specifying its owning row and column. The row is specified by its handle. The column can be specified by its name or field name. For detailed information on how to obtain row handles and identify columns, see Obtaining Row Handles and Accessing and Identifying Columns.
#Obtaining Cell Values
Use the following methods to obtain cell values:
Method | Description |
---|---|
Returns the value of a specified cell. | |
Returns the value of a specified cell displayed within a focused row. The focused row isn't displayed if the Data | |
Returns the focused cell's value. The focused cell is displayed if the Data | |
Returns the value of the specified cell displayed within the specified node. | |
Returns the focused cell's text. | |
Returns the text displayed within a specified cell. |
#Setting Cell Values
Method | Description |
---|---|
Sets the value of the specified cell. | |
Sets the value of the specified cell in the specified node. | |
Sets the value of the specified cell displayed within the focused row. The focused row isn't displayed if the Data |
Once the cell's value has been changed, the GridViewBase.CellValueChanged event is raised.