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.

Selecting the Current row with code

Thread ID:

Created:

Updated:

Platform:

Replies:

48162 Aug 21,2006 02:17 PM Aug 30,2006 07:40 PM ASP.NET Web Forms (Classic) 5
loading
Tags: GridGroupingControl
Greg Mills
Asked On August 21, 2006 02:17 PM

I am ussing the following code when a page loads to select the desired row:

Record rec = this.grdLocations.Table.Records[Convert.ToInt32(lblDisplayOrder.Text) - 1];
rec.SetCurrent();
rec.SetSelected(true);

It works great is the row is on the first page. If the row is on a different page the it just sets the selected to record 1.

Ramu [Syncfusion]
Replied On August 21, 2006 10:05 PM

Hi Greg,

We are looking into it and will update you as soon as possible.

Thanks,
Ramu.K

Sivakumar [Syncfusion]
Replied On August 22, 2006 07:41 PM

Hi Greg,

The issue you are facing is because of we now don''t have any support for preventing the selection of first record row when the page loads. so when the currently selected record is not visible it considers the first record as selected.

To overcome this issue We decided to make a bool property called EnsureSelection which if false, we can prevent this behavior.

we have logged a FR reg this and you can see the progress of the issue here:

http://www.syncfusion.com/support/features/grid/Default.aspx?ToDo=view&questId=1119

Sorry for the inconvenience caused

Thanks,
A.Sivakumar

Greg Mills
Replied On August 23, 2006 01:43 PM

I would also like the ability to switch to a particular page of the grid during the load of the Page.

Ramu [Syncfusion]
Replied On August 23, 2006 05:37 PM

Hi Greg,

You con directly load the second page in Grid by using the following code in Init method.

Source Code:
[C#]

this.GridGroupingControl1.CurrentPage = 2;

Hope this solves your problem.

Thanks,
Ramu.k

GregMills
Replied On August 30, 2006 07:40 PM

This has been resolved.

Thanks for the help

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.

;