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.

disable new row row on GridGroupingControl

Thread ID:





103713 May 27,2012 03:13 AM Jun 21,2018 02:50 AM Windows Forms 4
Tags: Grouping
ian bradley
Asked On May 27, 2012 03:13 AM

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 06:09 AM

That was a hunt and a half.

_gridGroupingControl.TopLevelGroupOptions.ShowAddNewRecordBeforeDetails = false;

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

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 20, 2018 09:04 PM

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 02:50 AM

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.

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.