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

Checkbox as GridEditCommandColumn

1 Answer 103 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 29 Mar 2011, 04:02 AM
Is there a way to show inplace editing of radgrid items on checked of a checkbox inside template column?

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 29 Mar 2011, 07:06 AM
Hello Albert,

In order to achieve this, try the following code snippet.
 
C#:
protected void CheckBox1_CheckedChanged(object sender, EventArgs e)
   {
       CheckBox chkbox = (CheckBox)sender;
       GridDataItem item = (GridDataItem)chkbox.NamingContainer;
       item.Edit = true;
       RadGrid1.Rebind();
   }

Thanks,
Princy.
Tags
General Discussions
Asked by
Albert
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or