The System.Web.UI.WebControls.GridView is a control class that represents a gridview control in ASP.NET application. It provides a way to display and manage data in a tabular format with built-in support for paging, sorting, filtering, and editing data.
Code Examples:
1. Binding GridView with a Data Source:
GridView1.DataSource = ds; //ds is a dataset
GridView1.DataBind();
2. Sorting GridView Data:
GridView1.AllowSorting = true;
GridView1.Sorting += new GridViewSortEventHandler(GridView1_Sorting);
Package Library: The System.Web.UI.WebControls.GridView class is a part of the System.Web assembly in the .NET Framework.
C# (CSharp) System.Web.UI.WebControls GridView - 60 examples found. These are the top rated real world C# (CSharp) examples of System.Web.UI.WebControls.GridView extracted from open source projects. You can rate examples to help us improve the quality of examples.