Gridview
sir,,, i am working on a project regarding online attendance management for my college..... i am facing a problem.... the type of gridiew that i want is it should have the heading as the date which should be connected with the system date.... as the day goes by that is at midmight when date changes the gridview should have the current date now... will you help me out for this... looking for your earliest reply..
5 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Sanjay Chauhan55 reputationPosted Aug 26, 2009, 7:52 PM EDT
Set the headertext in code like that before the databind
GridView1.Columns[0].HeaderText = DateTime.Now.ToString();
GridView1.DataSource = dataTable;
GridView1.DataBind();
banwas nayak5 reputationPosted Aug 28, 2009, 6:52 PM EDT
Sanjay Chauhan55 reputationPosted Aug 30, 2009, 7:12 PM EDT
this code snippet is for binding the gridview from code.
Here dataTable is the records which fetch from the database.
abhishek trivedi112 reputationPosted Sep 30, 2009, 5:07 AM EDT
dont be too smart.
i dont like that
banwas nayak5 reputationPosted Sep 30, 2009, 7:16 AM EDT