for (int i = 0; i < this.GridMessage.Rows.Count; i++)
{
CheckBox chk = (CheckBox)GridMessage.Rows[i].FindControl("CheckAll");
if (chk.Checked)
{
string id = this.GridMessage.DataKeys[i].Value.ToString();
DeleteReceiveMessageByid(new Guid(id));
}
}
Grid_NeedDataSource(0);