You can do it in two ways
First way
1. Add a column as raterus specified and don't bind this column.
2. At runtime, After binding the Data Grid, have another function which loops through the grid like
foreach (DataGridItem item in dgrdList.Items)
item.Cells[0].Controls.add
Second Way
1. Instead of using DataGrid, you can generate the table on the fly and when you create the controls, the first column will be as TableCell containing check box.
Hope this helps.
Bhaskar
Main Topics
Browse All Topics





by: raterusPosted on 2008-05-16 at 08:26:30ID: 21583585
The basic usage is something like this,
<columns>
<asp:templatecolumn>
<asp:checkbox id="chkSelect" runat="server" />
</asp:templatecolumn>
...
...
</columns>