Hi,
Try this if could fit to your needs, and could help...
In your client code:
<asp:TemplateField HeaderText="Delete">
<ItemTemplate>
<asp:CheckBox ID="CheckBox1" runat="server" />
</ItemTemplate>
</asp:TemplateField>
In your Code behind (example):
protected void btnDelete_Click(object sender, EventArgs e)
{
for (int i = 0; i < grdDeleteTransaction.Rows.Count; i++)
{
var row = grdDeleteTransaction.Rows[i];
var isTag = row.FindControl("CheckBox1");
CheckBox checkbox = (CheckBox)isTag;
if (checkbox.Checked)
{
}
else
{
}
}
}
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Regards,
Algem