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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set focus to a cell in GridGroupingControl

Thread ID:





19064 Sep 16,2004 06:03 PM UTC Sep 16,2004 07:42 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On September 16, 2004 06:03 PM UTC

in GridGroupingControl,I want to set default focus at a cell by knowing its columnname and value. such as set focus to a cell its column named as "City" and its display value as "City of Toronto" TIA

Administrator [Syncfusion]
Replied On September 16, 2004 07:42 PM UTC

There is currently no Find support. One thing you can do is to filter for the string, save the record, then undo the filter, and then set the current cell. this.gridGroupingControl1.TableDescriptor.RecordFilters.Add("[City] LIKE ''City of Toronto''"); GridRecord rec = this.gridGroupingControl1.Table.FilteredRecords[0] as GridRecord; this.gridGroupingControl1.TableDescriptor.RecordFilters.Clear(); int row = this.gridGroupingControl1.Table.DisplayElements.IndexOf(rec); int col = this.gridGroupingControl1.TableDescriptor.VisibleColumns.IndexOf("Col1"); this.gridGroupingControl1.TableControl.CurrentCell.MoveTo(row, col + 1);


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

Live Chat Icon For mobile
Live Chat Icon