Hi,
How do i access the controls placed in the empty data template?
I am using the following link to create empty data template and i have added text boxes i the footer
http://www.aspsnippets.com/Articles/Display-GridView-with-Empty-Message-and-Header-and-Footer-when-no-data-in-ASP.Net.aspx
Refer here
http://www.aspsnippets.com/Articles/Add-record-to-Database-using-ASP.Net-GridView-EmptyDataTemplate-and-FooterTemplate.aspx
This way
//First Create DataTable DataTable dt=new DataTable(); dt.Columns.Add("Name"); dt.Colums.Add("Marks"); //Add Row DataRow row = dt.NewRow(); row["Name"] = "Ravi"; row["Marks"] = 500; dt.Rows.Add(row);
© COPYRIGHT 2024 ASPSnippets.com ALL RIGHTS RESERVED.