Posted 31 March 2020, 3:33 am EST
Hi,
As title. Is that any way to have a Highlight function?
Best regards,
Jason
Forums Home / ComponentOne / ComponentOne Studio for Xamarin
Posted by: jasonyslai on 31 March 2020, 3:33 am EST
Posted 31 March 2020, 3:33 am EST
Hi,
As title. Is that any way to have a Highlight function?
Best regards,
Jason
Posted 1 April 2020, 9:31 am EST
Hi Jason,
You can set the “SelectionBackgroundColor” of the Grid to show the desired color of the tapped cell. Also you need the set the “grid.SelectionMode” of the Grid to “GridSelectionMode.Cell”.
grid.SelectionMode = GridSelectionMode.Cell;
grid.SelectionBackgroundColor = Color.Green;
Please let me know if you need some other help.
Thanks
Posted 6 April 2020, 8:41 am EST
Hi Jason,
You can use the GridSelectionMode to CellRange which will change the BackgroundColor of the entire selected range, as the grid does not allows to set the style to particular cell.
grid.SelectionMode = GridSelectionMode.CellRange;
Whenever you change the selection the previous highlight turns to default and the new selected portion appears with the color specified in the SelectionBackgroundColor of the Grid.
Please let me know if you need any other help.
Thanks
Posted 6 April 2020, 10:56 am EST - Updated 30 September 2022, 9:22 am EST
Hi abhishek.tayal,
The Multi-Range Selection of Wijmo meets this requirement.
https://www.grapecity.com/wijmo/demos/Grid/Selection/MultipleSelection/purejs
My client needs a zoomable and multi selection datagrid.
Best regards,
Jason
Posted 13 April 2020, 12:54 am EST
Hi Jason,
We are sorry but currently FlexGrid on Xamarin platform does not support “MultiRange Selection” mode as like the MultiRange Selection in Wijmo.
Please let me know if you need any other help.
Thanks