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

Selecting entire row

Thread ID:





47952 Aug 16,2006 04:25 PM UTC Aug 16,2006 05:14 PM UTC WinForms 1
Tags: GridControl
Sivaiah Boppana
Asked On August 16, 2006 04:25 PM UTC

I have two visible columns in child table row of GGC,they are displaying in two cells in a row now.i would like to select entire row, but at the moment i can able to select cell by cell.how can i do that???. Please help me


Administrator [Syncfusion]
Replied On August 16, 2006 05:14 PM UTC

If you want this behavior (selecting rows) for all your tables, then you can set these properties.

this.grid.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended;
this.grid.TableOptions.ListBoxSelectionCurrentCellOptions = GridListBoxSelectionCurrentCellOptions.None;

But if you only want this behavior on a single table, then you can handle an event instead of setting the ListBoxSelectionMode (You still have to set the istBoxSelectionCurrentCellOptions to none).

void hierarchyGrid_TableControlCellClick(object sender, GridTableControlCellClickEventArgs e)
if (e.TableControl.Table.TableDescriptor.Name == "ChildTable")//name of your child table
GridCurrentCell cc = e.TableControl.CurrentCell;
GridTableCellStyleInfo style = e.TableControl.GetViewStyleInfo(e.Inner.RowIndex, e.Inner.ColIndex) as GridTableCellStyleInfo;
GridRecord r = style.TableCellIdentity.DisplayElement.GetRecord() as GridRecord;
if (r != null)


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