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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

current cell automatically goes to 1st row when tab changes

Thread ID:





12706 Apr 8,2004 10:32 AM UTC Apr 9,2004 12:09 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On April 8, 2004 10:32 AM UTC

A databound grid is placed tab1. I have it setup for row selection when a cell is selected. When changing to tab2 the current row selected automatically goes to the first datarow. I would prefer that it stay on the user''s selected row so that the row''s information can be used as input for tab2.

Administrator [Syncfusion]
Replied On April 9, 2004 12:09 AM UTC

I am not sure what you are describing. Is it that you have a second grid on tab 2, and you want the selected row in that grid to match the grid on tab 1? If so, you can handle the tabcontrol SelectedIndexChanged event, and explicitly set the current cell on the second grid based on the settings from the first grid. Here is a little sample. Or, is it that there is only 1 grid, and it is resetting the selected row when you change tabs. This is not normal behavior. In the sample above, the first grid does not reset when you click on tab 2 or tab 3. Are you doing any kind of sorting or updating as you leave the first grid? If so, this might be what is causing the reset. In that case, you would have to save the current cell before doing the action that resets it, and then set it back after the action.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon