This is a migrated thread and some comments may be shown as answers.

Synchronize 2 radgridviews with content grouped

3 Answers 170 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jan Pfeffer
Top achievements
Rank 1
Jan Pfeffer asked on 29 Feb 2012, 11:31 AM
Hey at Telerik

I have 2 radgridviews set up horizontally with the same column configuration and almost the same content.
(the content of two columns in each radgridview can differ).
I have grouped the content in both radgridviews and have tried to synchronize the grids when groupitems are selected.
When i click a Group item in say the left radgridview i would like the corresponding groupitem in the other radgridview to scroll to that exact vertical position.

Is there any way to achieve this behaviour ?

Sincerly Jan

3 Answers, 1 is accepted

Sort by
0
Accepted
Ivan Todorov
Telerik team
answered on 05 Mar 2012, 10:58 AM
Hi Jan,

Thank you for writing.

Yes, there is a way to achieve such behavior. I am sending you a small sample project which demonstrates how this could be implemented. The basic idea is to handle clicks on group rows in one of the grids, iterate to the groups of the other grid to check for a group with the same name and if there is such, make it current. Also, a small tweaking of the position of the scrollbar is needed in order to get the items aligned beside each other.

I hope you find this useful. Do not hesitate to write back in case you have any additional question.

All the best,
Ivan Todorov
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
0
Vishal
Top achievements
Rank 1
answered on 26 Sep 2012, 02:00 PM
Hi,

Can any one guide me on how to scroll syncing of two winform radgridview in a manner, when i scroll one gridview, other gridview scrolls to the same level(row); and same happens when 2nd gridview is scrolled; and 1st gridview is also scrolled in same manner.

Thanks in advance,
Vishal Gupta
0
Ivan Todorov
Telerik team
answered on 27 Sep 2012, 02:02 PM
Hi Vishal,

Please check my reply in the other forum thread in which you are asking the same question.

Feel free to ask if you have any additional questions.

All the best,
Ivan Todorov
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
GridView
Asked by
Jan Pfeffer
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Vishal
Top achievements
Rank 1
Share this question
or