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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Removing default blank row in griddataboundgrid

Thread ID:





961 Sep 6,2002 11:05 AM UTC Sep 6,2002 01:49 PM UTC WinForms 1
Tags: GridControl
Brian Severa
Asked On September 6, 2002 11:05 AM UTC

By default, there seems to be a blank row in the griddataboundgrid. After I assign my datasource and refresh the grid, I always have a blank row in addition to the data. How do I remove this blank row?

Clay Burch [Syncfusion]
Replied On September 6, 2002 01:49 PM UTC

The GridDataBoundGrid.EnableAddNew property controls whether this append row is visible or not. If you set this property false in the designer, then that should be all that is necessary. But if you set it after the GridDataBoundGrid has already been populated, say in the Form_Load after the call to your DataAdapter.Fill method, then the append row is already present. So, if you set the property after the grid has been populated, you should also call ResetVolatileData to make sure the display reflects the new setting. this.gridDataBoundGrid1.EnableAddNew = false; //needed if grid has already been populated this.gridDataBoundGrid1.Model.ResetVolatileData();


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

Live Chat Icon For mobile
Live Chat Icon