I have Datagrid in asp.net page with the below mentioned data
Device_Name | Column1 | Column2
---------------------------------------
iPad | CHECK BOX | CHECK BOX
iPhone | CHECK BOX | CHECK BOX
here Device_Name,Column1 and Column2 are column names, under these columns we have check boxes on both the columns, Please can any body help me how do I we get to know which all the check box's are TICKED/MARKED.
We should be able to tick any check box at any time
Could you please some one help me one this
[EDIT - OP comment from "solution" before it is deleted]
Thanks Nirav and Raje for your quick response, However your code is not working.
Here is my Code to auto generate my Gridview
===============================================
protected void GrdOSInfo_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
for (int i = 1; i < 3; i++)
{
CheckBox chk = new CheckBox();
chk.EnableViewState = true;
chk.Enabled = true;
chk.ID = "chkb"+i;
e.Row.Cells[i].Controls.Add(chk);
}
}
}
================================================
So here basically I want to know how do I assign checked value (just to identify which are been ticked) to array list from Grid view (for storing purpose, later I will pass this arraylist to next page).
Can any one please help me on this, I will be really great full to your help