Re: Implementation Data Controls in asp.net Hi all
How can I add a checkbox to each row of a GridView dynamically? I realise that this can be done by using <ItemTemplate></ItemTemplate> in the aspx page, but I'm trying to have columns in the GridView corresponding to different datasets.
//--
foreach (DataColumn dc in ds.Tables[0].Columns)
{
BoundField bField = new BoundField();
bField.HeaderText = dc.ColumnName;
bField.DataField = dc.ColumnName;
GridView1.Columns.Add(bField);
}
//--
I want a checkbox appended to each of the rows in the Gridview as well. How can I do that? Any pointers would be appreciated.
Thanks
__________________ G.A.P |