Kettic ASP.NET Ajax Data GridView provides the support of showing hierarchical data to an arbitrary number of levels and establishing the hierarchical at either run time or design time. The web GridView control allows users generate hierarchical data automatically at runtime as well as create hierarchical data in C# code for ASP.NET Web Forms application. When users of the GridView Control do not want add the entire dataset and hierarchy into your C# ASP.NET WebForms application, we may need to bind the C# GridView control to data source using C# code manually.
To bind data to Grid control, just set DataSource property. And the Data source can be DataSet, DataTable, ArrayList, XML Data Source, XML file and so on. Please see free online demo for Gird Data Binding.
Simple Data Binding
In this tutorial, we will use sql database for example to show you how to insert data to asp.net grid view. In most commonly way, developers always like adding data in the Page_Load event. Before showing the asp.net gridview to the html page, you need bind data to the gridview, so that the grid can show this data.
All the binding operations are done in the server side, the data will be bound dynamically to the asp.net gridview. Please follow the C# demo code:
Advanced Data Binding
Now, letâs see the operation that need rebind data source when it is done:
Here we provide an example of binding data in NeedDataSource event.
ASP.NET AJAX UI Controls