C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » ASP.NET »

ASP.NET


Posted Date: 21 Nov 2008      Posted By: Muraleedharan.k      Member Level: Silver     Points: 1   Responses: 1



How to add a checkbox in to the gridview control dynamically.I want only cs code.




Responses

Author: Pavani    21 Nov 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 4

protected void gridViewData_DataBound(object sender, EventArgs e)
{
foreach (GridViewRow GVRow in gridViewData.Rows)
{
TableCell tcCheckCell = new TableCell();
CheckBox chkCheckBox = new CheckBox();
tcCheckCell.Controls.Add(chkCheckBox);
GVRow.Cells.AddAt(0, tcCheckCell);
}
}



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : IIS
Previous : asp.net
Return to Discussion Forum
Post New Message
Category: ASP.NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use