RadGridView moves to other rows after selection click on a row

1 Answer 37 Views
GridView
fabrizio
Top achievements
Rank 1
Veteran
fabrizio asked on 16 Jan 2025, 12:42 PM
Good morning
I have a question about RadGridView. On a .net form I added a RadGridView populated by code and it works perfectly. The only thing I don't understand is that, I select a row, and then by clicking a button I open another form to edit the data and so far everything is fine. I close the other form of the data modification, go back to the RadGridView, click on the row and instead of maintaining the position on the clicked row it moves to one of the initial rows. I can't understand why it doesn't stay on the clicked row after being on another form.
Sorry for the length of the post, I don't know if I can make myself understood, I hope someone can help me.
Best regards
Fabrizio

1 Answer, 1 is accepted

Sort by
0
Nadya | Tech Support Engineer
Telerik team
answered on 16 Jan 2025, 02:11 PM

Hello, Fabrizio,

Following the provided description, it seems that you have a custom implementation where you open another form on a button click in RadGridView. I am not familiar with your setup and it is difficult to understand what exactly is happening and why the row selection is changed on your end. 

It would be great if you tried to isolate this undesired behavior in a sample simplified project that can replicate the problem. Thus, we should be able to investigate it further. Once, I have the problem replicated I should be able to debug it and inspect in details, then provide a suitable solution for the specific case.

Thank you in advance for your understanding. I am looking forward to your reply.

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

fabrizio
Top achievements
Rank 1
Veteran
commented on 17 Jan 2025, 12:08 PM

Good morning Nadya
Thank you very much for your answer, in the end I found the problem, because the RadGridView is inside a tab of a tabControl so I assign to a property the index of the selected row on the click of the RadGridView and then I reassign it to currentRow in the TabPage_Enter event. Thanks again and greetings from Italy
Fabrizio
Tags
GridView
Asked by
fabrizio
Top achievements
Rank 1
Veteran
Answers by
Nadya | Tech Support Engineer
Telerik team
Share this question
or