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

current cell automatically goes to 1st row when tab changes

Thread ID:

Created:

Updated:

Platform:

Replies:

12706 Apr 8,2004 06:32 AM Apr 8,2004 08:09 PM Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On April 8, 2004 06:32 AM

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 8, 2004 08:09 PM

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.

CONFIRMATION

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.

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.

;