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
close icon

How to hide the plus/minus sign just for the nested table

Hi, I am using the gridgroupcontrol, and for some rows there are nested tables, but I do not want to show the plus/minus sign in the row header, instead, I want the nested tables only shows after user click certain column in that row, any idea how to do this? much appreciated your response

Thanks


1 Reply

RR Ranjithkumar R G Syncfusion Team July 13, 2011 10:30 AM UTC

Hi Rayzhahng ,

Thanks for using Syncfusion products.

You can access the RecordPlusMinus cells through QueryCellStyleInfo event and change the cell type as “Static” to hide the Plus/Minus symbol. Please refer the below code snippet which illustrates this:

[CodeBehind-CS]



if (e.TableCellIdentity.TableCellType == GridTableCellType.RecordPlusMinusCell)
{
e.Style.CellType="Static";
}


Please refer to the below link to download the sample application.

http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=sample-2-78543-2123037777.zip

Please let me know if you have any concern.

Regards,
Ranjithkumar


Loader.
Live Chat Icon For mobile
Up arrow icon