[Flexgrid]Highlight the tapped cell when CellTapped is triggered

Posted by: jasonyslai on 31 March 2020, 3:33 am EST

    • Post Options:
    • Link

    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 3 April 2020, 12:30 am EST - Updated 30 September 2022, 9:22 am EST

    Hi abhishek.tayal

    Thanks for your reply. Is that possible to keep more than one cells (seperately)?

    And reverse the background back when tapped is triggered on those highlighted cells.

    Best regards

  • 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

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels