The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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?
CBClay Burch Syncfusion Team 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();