We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Nested Table Selected Cells

Hi,
 
I have a grid. Each row in that grid has editable sub-rows (nested tables)
I expand multiple rows and now multiple sub-rows for each parent row are exposed.
I select a bunch of cells in the sub-rows and now trying to retrieve those programmatically.
 
At the moment I am using this.TableModel.Selections.GetSelectedrows(false,true) and this only gives me the first raw that is selected and not the other.
 
How can I retrieve all selected cells.
 
Thank you
 
 

4 Replies

GM Gaukhar Massabayeva March 14, 2013 02:59 PM UTC

I am using model based selection, because I need to be able to select individual cells.
 
Thought I would mention since I read this article earlier.
 

Model-Based Selection

1. In Model-based selection, you will be able to select cell ranges; but the selections will have no knowledge of nested tables, grouping or sorting and hence the functionality is limited like a data bound grid (GridData control).

2. To use the model selection capability, set AllowSelections to any flag except none.

3. Selection can be made through keyboard and mouse.

Record-Based Selection

1. It is designed specifically for the data bound grids.

2. In Record-based selection, the complete grid records (rows) will be selected and these selections function properly with nested tables, sorting, and so on.

3. To use the record selections, you must set AllowSelections to none and then set ListBoxSelectionMode to any flag except none.

4. Selection can be made through keyboard and mouse with some restriction. For more details, see Record-based Selection in this topic.



GM Gaukhar Massabayeva March 14, 2013 03:09 PM UTC

Can somebody tell us whether it is possible to get nested tables selected cells despite using model based selection?


GM Gaukhar Massabayeva March 18, 2013 11:29 AM UTC

Can somebody get back to me please on this?
Thanks


AS Athiram S Syncfusion Team March 21, 2013 02:46 AM UTC

Hi Gaukar,

We deeply regret for the delay caused.

We are currently working on this query. Kindly, attach a sample and the type of selections you have done in order to select the nested tables.

we will update you with solution ASAP.

Regards,
Athiram S

Loader.
Up arrow icon