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.
I was wondering if it was possible to add empty records to a griddataboundgrid. The purpose is to fill up the empty grid space with empty records, when there is by example one record specified in the grid.
JJJisha Joy Syncfusion Team November 18, 2008 05:30 AM UTC
Hi Gunther,
You do not have to fill in everything. All you have to do is call:
DataRow dr = dt.NewRow(); dt.Rows.Add(dr);
That is it. That adds any empty row. You are free to populate whatever field you want to populate, 1 field, 2 fields, all fields or no fields.
If your datasource is not a datatable, then you still do the same thing. You create a new item for your IBindingList collection, and then you add it to the collection.
So, the question is: Can you add a new item to the datasource and populate what you want populated? This has nothing to do with the grid, it is all about the nature of your datasource.
Thank you for using Syncfusion products.
Regards, Jisha
GDGunther DevischNovember 18, 2008 11:59 AM UTC
Hey Jisha,
Indeed, stupid of me! I wasn't thinking so far.
Thanks for the solution!
Gunther
ADAdministrator Syncfusion Team December 5, 2008 03:02 PM UTC
Hey,
I was wondering if there is property for filling up the griddataboundgrid with empty records, because with i'm having problems adding empty datarows to the datatable, duo to my rowfilter i think.