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.
how can i add a new row to the datagrid programatically? changing the datasource is the only way? or is there anyother way?
thanks in advance
ramachandran.g
ADAdministrator Syncfusion Team December 23, 2002 03:57 PM UTC
> how can i add a new row to the datagrid programatically? changing the datasource is the only way? or is there anyother way?
>
>
> thanks in advance
>
> ramachandran.g
>
If you are bound to a ADO table adding directly to datatables add new methods is probably easiest. The grid will then reflect the changes.
Another method is to use the AddNew and EndEdit methods of the GridDataBoundGrid.Binder object. The row will then be added to the datasource after you called EndEdit.
Stefan