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.
Syncfusion Feedback

Selecting the Current row with code

Thread ID:

Created:

Updated:

Platform:

Replies:

48162 Aug 21,2006 06:17 PM UTC Aug 30,2006 11:40 PM UTC ASP.NET Web Forms (Classic) 5
loading
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];
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 22, 2006 02:05 AM UTC

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 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:

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 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:
[C#]

this.GridGroupingControl1.CurrentPage = 2;

Hope this solves your problem.

Thanks,
Ramu.k

GregMills
Replied On August 30, 2006 11:40 PM UTC

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.

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

;