Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Gridview checkbox column's check state

$
0
0

Hi ,there

How can i get row's check state ?  Here is how i add the checkbox column to the gridview and how try to get checkstate. Thank you for ur interest

GridViewCheckBoxColumn checkBoxColumn = newGridViewCheckBoxColumn();
checkBoxColumn.DataType = bool;
checkBoxColumn.Name = "Ekle";
checkBoxColumn.FieldName = "Ekle";
checkBoxColumn.HeaderText = "Ekle";
grdSorular.Columns.Add(checkBoxColumn);

 

privatevoidgrdSorular_ValueChanged(objectsender, EventArgs e)
       {
 
           if(grdSorular.ActiveEditor isRadCheckBoxEditor)
           {
               var rowindex = grdSorular.CurrentCell.RowIndex;
               boolvalue = false;
               if(grdSorular.Rows[rowindex].Cells["Ekle"].Value != null)
               {
                   value = (bool)grdSorular.Rows[rowindex].Cells["Ekle"].Value;
                   MessageBox.Show(value.ToString());
               }
           }
 
 
       }

 

 


Viewing all articles
Browse latest Browse all 94857

Latest Images

Trending Articles



Latest Images