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

disable new row row on GridGroupingControl

Thread ID:





103713 May 27,2012 07:13 AM UTC Jun 21,2018 06:50 AM UTC WinForms 4
Tags: Grouping
ian bradley
Asked On May 27, 2012 07:13 AM UTC

The GridGroupingControl has a new row row which I'd like disabled and hidden, but I can't find where this is done. How do I disable it? I don't want to see it at all.


ian bradley
Replied On May 27, 2012 10:09 AM UTC

That was a hunt and a half.

_gridGroupingControl.TopLevelGroupOptions.ShowAddNewRecordBeforeDetails = false;

Asarudheen S [Syncfusion]
Replied On May 29, 2012 10:11 AM UTC

Hi Ian,

Thank you for your interest in Syncfusion products.

You can achieve the reported behavior "Disable the add new record " by using the property "ShowAddNewRecordBeforeDetails" or "ShowAddNewRecordAfterDetails" to false.

Please refer the following code.
this.gridGroupingControl1.TopLevelGroupOptions.ShowAddNewRecordAfterDetails = false; //if the add new record is at the end of the group.

            this.gridGroupingControl1.TopLevelGroupOptions.ShowAddNewRecordBeforeDetails = false; // //if the add new record is at the top of the group.

Please let us know if you need any further assistance.


Replied On June 21, 2018 01:04 AM UTC

Hi Asarudheen S;

Please Check.

Event After Settings ShowAddNewRecordAfterDetails = False, ShowAddNewRecordBeforeDetails  = False

i am able to see new record option in grouping grid.

Please check bellow code.

 Dim c As New ClassMenu
        c.CommonCode = "001"
        c.MenuCode = 1
        c.menuName = "Country"
        c = New ClassMenu
        c.CommonCode = "001"
        c.MenuCode = 2
        c.menuName = "State"

        c = New ClassMenu
        c.CommonCode = "002"
        c.MenuCode = 3
        c.menuName = "Purchase"

        GridGroupingControl1.DataSource = lst

        GridGroupingControl1.TopLevelGroupOptions.ShowAddNewRecordAfterDetails = False
        GridGroupingControl1.TopLevelGroupOptions.ShowAddNewRecordBeforeDetails = False

        GridGroupingControl1.TableDescriptor.Columns(0).ReadOnly = True
        GridGroupingControl1.TableDescriptor.Columns(1).ReadOnly = True
        GridGroupingControl1.TableDescriptor.Columns(2).ReadOnly = True

Sindhu Nagarajan [Syncfusion]
Replied On June 21, 2018 06:50 AM UTC

Hi Raman, 

Thanks for contacting Syncfusion support. 

We have analyzed the code snippet you have provided. As per the code, you have set ShowAddNewRecordBeforeDetails to False only to the TopLevel grid. In order to hide the AddNewRecord row to the groups , you can set ChildGroupOptions.ShowAddNewRecordBeforeDetails to False. Please refer to the below code and sample, 

Code Snippet 
'Disables the AddNewRecord at top of the group 
Me.gridGroupingControl1.ChildGroupOptions.ShowAddNewRecordBeforeDetails = False 

Please let us know if you have any other queries. 



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