if I were you I would use below algorithm
Code:
private void delete_Click(object sender, System.EventArgs e)
{
foreach(DataListItem anItem in DataList1.Items)
{
if (((CheckBox)anItem.FindControl("CheckBox")).Checked)
{
//1-I delete from datasource through an deletecommand(like "DELETE yourtable WHERE [email protected]",you should use parameters here) the row which it's number is according to anItem.ItemIndex
}
}
//2-I retrieve new datasource and bind my datalist
}
HTH.
--------------------------------------------
Mehdi.:)