[Flexgrid]Highlight the tapped cell when CellTapped is triggered

Posted by: jasonyslai on 30 March 2020, 6:33 pm EST

  • Posted 30 March 2020, 6:33 pm EST

    Hi,
    As title. Is that any way to have a Highlight function?
    Best regards,
    Jason
  • Replied 1 April 2020, 12: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
  • Replied 2 April 2020, 3:30 pm 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
  • Replied 5 April 2020, 11:41 pm 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
  • Replied 6 April 2020, 1:56 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
  • Marked as Answer

    Replied 12 April 2020, 3:54 pm 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