Get rows whose cells are in the selected merged cell

1 Answer 49 Views
GridView
Vlad
Top achievements
Rank 1
Vlad asked on 07 Jul 2023, 08:55 AM
I have a Radgridview with merged cells. When I select a merged cell, the selected row in the ViewModel does not change. I need to get all rows whose cells are included in the selected merged cell. Can it be done?

1 Answer, 1 is accepted

Sort by
0
Dinko
Telerik team
answered on 11 Jul 2023, 11:45 AM

Hello Vlad,

Merged cells are not included in the selection. The GridView control ignores these cells during the selection process. In other words, you cannot get the selected merged cells, because they are never part of the selection. We already have logged a feature request to allow selection in the merged cells. You can track its status in the feedback portal.

The current cell is the last clicked cell, so if this was a merged cell, then you can get it through the GridViewMergedCell property. You can take a look about GridViewMergedCell class in our documentation.

GridViewMergedCell currentMergedCell = this.radGridView.CurrentMergedCell;

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
GridView
Asked by
Vlad
Top achievements
Rank 1
Answers by
Dinko
Telerik team
Share this question
or