Class DataTableExtensions
DataTableBase Based Extension Methods
Inheritance
System.Object
DataTableExtensions
Namespace: GDX.DataTables
Syntax
public static class DataTableExtensions
Methods
| Improve this Doc View SourceGetCellValueAsString(DataTableBase, Int32, Int32, Serializable.SerializableTypes)
Get the value of a cell in a DataTableBase, as a System.String.
Declaration
public static string GetCellValueAsString(this DataTableBase dataTable, int rowIdentifier, int columnIdentifier, Serializable.SerializableTypes columnType = Serializable.SerializableTypes.Invalid)
Parameters
Type | Name | Description |
---|---|---|
DataTableBase | dataTable | The target Data Table to query for the value. |
System.Int32 | rowIdentifier | The unique row identifier. |
System.Int32 | columnIdentifier | The unique column identifier. |
Serializable.SerializableTypes | columnType | A hint as to the type of the column. If this is not provided a cost will be paid to get it. |
Returns
Type | Description |
---|---|
System.String | The System.String value of the target row's column. |
SetCellValueFromString(DataTableBase, Int32, Int32, String, Serializable.SerializableTypes)
Set the value of a cell in a DataTableBase from a System.String value.
Declaration
public static void SetCellValueFromString(this DataTableBase dataTable, int rowIdentifier, int columnIdentifier, string newValue, Serializable.SerializableTypes columnType = Serializable.SerializableTypes.Invalid)
Parameters
Type | Name | Description |
---|---|---|
DataTableBase | dataTable | The target Data Table to set a value for. |
System.Int32 | rowIdentifier | The unique row identifier. |
System.Int32 | columnIdentifier | The unique column identifier. |
System.String | newValue | The value to set. |
Serializable.SerializableTypes | columnType | A hint as to the type of the column. If this is not provided a cost will be paid to get it. |