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

How to make the cursor of GCC grid points to the first record

Thread ID:





43378 Apr 21,2006 08:36 AM UTC Apr 21,2006 08:49 AM UTC WinForms 1
Tags: GridControl
Rahul Sharma
Asked On April 21, 2006 08:36 AM UTC

i have a GCC datagrid, I wish to have the cursor of the grid to be pointed to the first record, as soon as the datagrid is displayed which is not the default behaviour of the cursor in the GCC datagrid.

Administrator [Syncfusion]
Replied On April 21, 2006 08:49 AM UTC

Hi Rahul, A record can be set as current by calling record.SetCurrent() method. Try the below code snippet in the form load or in the gridGroupingControl.Enter event handler. if(this.gridGroupingControl1.Table.Records.Count >0) this.gridGroupingControl1.Table.Records[0].SetCurrent(); Regards, Calvin.


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