About
Digital Colony is the technical web site for Michael Allen Smith of Seattle.
Tag Archives: DataTable
Clear GridView Control in ASP.NET
Clearing a populated GridView control can be done in just 3 lines of code. Create an empty DataTable and then bind it to the Gridview. DataTable dt = new DataTable(); GridView1.DataSource = dt; GridView1.DataBind();
Quickly Populating a GridView With Dummy Data
Maybe the database table isn’t ready yet, but you’d like to start working on a new GridView. What you need is a quick and dirty way to load up a GridView control with sample data. Drop a GridView Control onto … Continue reading
