This is a migrated thread and some comments may be shown as answers.

Verifity if checkboxfield is checked

2 Answers 52 Views
Grid
This is a migrated thread and some comments may be shown as answers.
mauricio
Top achievements
Rank 1
mauricio asked on 23 Mar 2012, 05:29 PM
Hello 

As i can know if the GridClientSelectColumn  is checked in the radgridview?.


thank you very much beforehand 





2 Answers, 1 is accepted

Sort by
0
Jayesh Goyani
Top achievements
Rank 2
answered on 23 Mar 2012, 06:07 PM
Hello mauricio,

protected void Page_PreRender(object sender, EventArgs e)
        {
            foreach (GridDataItem item in RadGrid1.MasterTableView.Items)
            {
                bool flag = item.Selected; // GridClientSelectColumn selected or not
            }
        }
 
 
OR
 
 
  protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                GridDataItem item = e.Item as GridDataItem;
                bool flag = item.Selected; // GridClientSelectColumn selected or not
}
}


Thanks,
Jayesh Goyani
0
mauricio
Top achievements
Rank 1
answered on 23 Mar 2012, 06:25 PM
thanK!!!, was what i needed.
Tags
Grid
Asked by
mauricio
Top achievements
Rank 1
Answers by
Jayesh Goyani
Top achievements
Rank 2
mauricio
Top achievements
Rank 1
Share this question
or