dt.Columns.Add("Date")
grddates.DataSource = dt; Session.Add("dt", dt); grddates.DataBind();
I have added a column to my datatable <pre>dt.Columns.Add("Date")
if(e.Row.RowType == DataControlRowType.DataRow) { int coulumnIndex = 0; var value= e.Row.Cells[1].Text ;// for reading bound field columns var value1 = (e.Row.FindControl("label1") as Label).Text;// for reading template columns }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)