ICellCustomizer.CreateUnassignedImageSource() Method
Sets up an image source for unassigned switches shown in switch columns.
Namespace: DevExpress.Mobile.DataGrid.Theme
Assembly: DevExpress.Mobile.Grid.v18.2.dll
Declaration
Returns
Type | Description |
---|---|
Xamarin.Forms.ImageSource | The Xamarin.Forms.ImageSource object, that specifies the image source. |
Remarks
Important
This documentation topic describes legacy technology. We no longer develop new functionality for the GridControl and suggest that you use the new DataGridView control instead.
In the GridControl, data fields are represented as columns and records are displayed as rows. So, to display data, a grid should contain columns bound to fields of the underlying data source.
An individual column is specified by the SwitchColumn, NumberColumn, TextColumn or DateColumn object (a GridColumn descendant) depending on the type of data displayed in this column. Use columns of the SwitchColumn type that contain switches within cells to allow end-users to change Boolean values.
The CreateUnassignedImageSource method allows you to set up the image that will be shown in columns of the SwitchColumn type once the switch value is not specified.
The CreateUnassignedImageSource method is abstract. So, to change the image source shown in your grid, override the method in the ICellCustomizer descendants.