J
JLuv
right now i'm trying the method...
int i = 0;
foreach (DataGridItem dgItem in pGrid.Items) //(int i = 0; i <
pGrid.Items.Count; i++)
{
if (((CheckBox)dgItem.FindControl("check")).Checked)
{
i++;
}
}
Response.Write(i);
just to see if i'm getting the correct amount of checks. however, i've
gone into the debugger and saw that it has each checkbox as false even
when checked.
now if i can get that part to work correctly, how would i get the data
from the datagrid for each checked box?
any help?
int i = 0;
foreach (DataGridItem dgItem in pGrid.Items) //(int i = 0; i <
pGrid.Items.Count; i++)
{
if (((CheckBox)dgItem.FindControl("check")).Checked)
{
i++;
}
}
Response.Write(i);
just to see if i'm getting the correct amount of checks. however, i've
gone into the debugger and saw that it has each checkbox as false even
when checked.
now if i can get that part to work correctly, how would i get the data
from the datagrid for each checked box?
any help?