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 have an asp.net grouping grid. I load and binds the data on page load method - if I do this my rows are repeated for every postback - if I don''t do this my drill down rows have no data.
what is the solution ?
regards,
Sal
ADAdministrator Syncfusion Team August 8, 2005 05:50 PM UTC
Hi Sal
To data bind the ASP.NET Grid control you need to specify the appropriate DataSource and call DataBind() in the Web Form''s Page_Init() event. This is important as Init is the first step in the page''s life cycle and occurs when the page is initialized.
Here is an example of how the WebForm''s Init would typically look in an Application using the GridControl:
[C#]
private void WebForm1_Init(object sender, System.EventArgs e)
{
this.oleDbDataAdapter1.Fill(this.dataSetCustomers1);
//Add PrimaryKey to the PrimaryKeyColumns collection
GridTableDescriptor mainTD = this.GridGroupingControl.TableDescriptor;
mainTD.PrimaryKeyColumns.Add("CustomerID");
//Call DataBind
this.GridGroupingControl.DataBind();
}
Regards,
Arun