5
Answers

gridview

banwas nayak

banwas nayak

15y
3.5k
1
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..
Answers (5)
0
Sanjay Chauhan

Sanjay Chauhan

NA 461 0 15y
Hi

Set the headertext in code like that before the databind

GridView1.Columns[0].HeaderText = DateTime.Now.ToString();
 GridView1.DataSource = dataTable;
        GridView1.DataBind();
Accepted
0
banwas nayak

banwas nayak

NA 5 0 15y
u just mind ur own business.. i am having a problem so i m taking help nt ur comments...
0
abhishek trivedi

abhishek trivedi

NA 156 64.4k 15y

cant you see that he has accepted one answer so why you want to know the details of that like what is the datatable and all ?

dont be too smart.

i dont like that
0
Sanjay Chauhan

Sanjay Chauhan

NA 461 0 15y
Hi,

this code snippet is for binding the gridview from  code.
Here dataTable is the records which fetch from the database.
0
banwas nayak

banwas nayak

NA 5 0 15y
what is datatable in your coding??? i couldn't get that.. plz reply soon.. also tell me if something else is also required to do....