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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Selecting the Current row with code

Thread ID:





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

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];

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 22, 2006 02:05 AM UTC

Hi Greg,

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


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

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:


Sorry for the inconvenience caused


Greg Mills
Replied On August 23, 2006 05:43 PM UTC

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 09:37 PM UTC

Hi Greg,

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

Source Code:

this.GridGroupingControl1.CurrentPage = 2;

Hope this solves your problem.


Replied On August 30, 2006 11:40 PM UTC

This has been resolved.

Thanks for the help


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

or the page will be automatically redirected to 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