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

Current Selected Cell

Thread ID:





21750 Nov 19,2004 05:57 AM UTC Nov 19,2004 01:22 PM UTC WinForms 2
Tags: Grouping
Asked On November 19, 2004 05:57 AM UTC

Hi there, How could I check whether is there any selected row or cell ? thanks.

Administrator [Syncfusion]
Replied On November 19, 2004 09:10 AM UTC

Having a current cell and having selections are two different things. Here a code snippet showing how you might check for these items. if(this.gridGroupingControl1.TableModel.CurrentCellInfo != null) Console.WriteLine(this.gridGroupingControl1.TableModel.CurrentCellInfo.ToString()); else Console.WriteLine("no currentcell"); if(this.gridGroupingControl1.TableModel.Selections.Ranges.Count > 0) Console.WriteLine("ranges: {0}",this.gridGroupingControl1.TableModel.Selections.Ranges.Count); else Console.WriteLine("no selections");

Administrator [Syncfusion]
Replied On November 19, 2004 01:22 PM UTC

You can also check groupingGrid.Table.CurrentElement to get the current NestedTable, CaptionBar or Record element of the underlying row where the current cell is. And groupingGrid.Table.CurrentRecordManager.CurrentField to get the FieldDescriptor for the current column in the current record Stefan


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