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 set focus to a cell in GridGroupingControl

Thread ID:

Created:

Updated:

Platform:

Replies:

19064 Sep 16,2004 06:03 PM UTC Sep 16,2004 07:42 PM UTC WinForms 1
loading
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);

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

;