Firing rows changed event in cascading GridViews

2 Answers 85 Views
GridView
Patgat
Top achievements
Rank 2
Iron
Iron
Iron
Patgat asked on 15 Apr 2022, 10:36 AM

Hello,

My apologies if this is a too simple question.

I am trying to work with three cascading Grid Views and do not understand the right event to look for.

1) In the first Grid View, I display a list linked to a datasource. This is the reference list from which the user may select one or more rows (with multi-select = true and FullRowSelect as selection mode)

2) Then this selection create another list which fills/update the second GridView. Most often this is only one row.

3) I would like to fill the third Grid View based on the second Grid View updated list. However, I do not find any row event able to do in all cases. In particular, as most of the time the number of rows in the updated second grid view are the same, neither SelectionChanged nor RowChanged nor CurrentRow_changed are working.

What do I do wrong ?

Thanks for your answers

P.

2 Answers, 1 is accepted

Sort by
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 19 Apr 2022, 01:32 PM
Hello, Patgat, 

According to the provided information, I believe that the following KB article may be helpful for achieving your goal:
https://docs.telerik.com/devtools/winforms/knowledge-base/master-detail-in-two-grids 

Indeed, it uses the RadgGridView.CurrentRowChanged event and based on the current row in the master grid, the details grid updates its DataSource accordingly. The SelectionChanged event is another event that may be suitable for refreshing the grid's content. Please give the demonstrated approach a try and see how it works on your end.

In case you are still experiencing any further difficulties, it would be greatly appreciated if you can provide more details about the exact goal that you are trying to achieve together with some sample data or project. Thus, we would get better understanding of the precise case and provide further assistance. Thank you in advance.

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

 

Regards,
Dess | Tech Support Engineer, Principal
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.

0
Patgat
Top achievements
Rank 2
Iron
Iron
Iron
answered on 20 Apr 2022, 04:43 PM

Thanks Dess,

my mistake. I have corrected the code accordingly and  it works very well now.

Regards

Patrick

Tags
GridView
Asked by
Patgat
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Patgat
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or