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.

Current Selected Cell

Thread ID:

Created:

Updated:

Platform:

Replies:

21750 Nov 19,2004 12:57 AM Nov 19,2004 08:22 AM Windows Forms 2
loading
Tags: Grouping
Peggun
Asked On November 19, 2004 12:57 AM

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

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

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 08:22 AM

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

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.

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.

;