Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi I need to display current week date's as gridview header dynamically and also display previous week details if required by selecting control button placed on gridview. And while saving or updating data with respect to date in header row.
Posted
Updated 24-Apr-11 19:02pm
v5
Comments
Abhinav S 16-Apr-11 7:23am    
What have you tried so far?

Your Question Not Clear To Me
But If You Want Grid View Values Take Foreach Loop
Create Instance like
foreach(GridViewRow gr in Grid.rows)
{
    string varname= Grid.Rows[i].Cells[0].Text;
    i++;
}
 
Share this answer
 
v3
Perhaps you want to do this:
If not, Please explain your question.

grid1.HeaderRow.Cells[1].Text = DateTime.Now.DayOfWeek.ToString(); 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900