0

I am assigning a 'ds' dataset to datagrid.In addition to that I want to add new column with check boxes.That new column will be first column of datagrid.

Currently I am using below code,

DataGrid1.DataSource = dsResult.Tables("Result")

Result table has 4 column....in addtion to that i want to column "Selection" with check boxes

1 Answer 1

1

You can add a checkbox inside the itemtemplate like

<ItemTemplate>
   <asp:CheckBox ID="chkComplete" runat="server" />
</ItemTemplate>

For a basic understanding read this article

Including a CheckBox Control Inside an ASP.NET DataGrid...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.