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

checkbox current value

1 Answer 46 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Hilda Kenny
Top achievements
Rank 1
Hilda Kenny asked on 20 Jun 2011, 12:58 PM
hi I have a checkbox where I need to check something if it is selected.  In the cellbeginedit event I check the value of the checkbox but it is false when I clearly set it to true. Is there a different way to approach this?  All I need to do is call a function if the checkbox is set to ticked.  The column is also added at run time if that helps. Thanks.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 23 Jun 2011, 09:43 AM
Hi Hilda,

Thank you for writing.

I have made a small test, where initially the value of the check box is true and in the CellBeginEdit event I am checking the ActiveEditor or the CurrentCell value and it appears correct - it is still true - since the action was not yet processed. Here is the code that I use to check the value:
e.ActiveEditor.Value
//or
radGridView1.CurrentCell.Value

However, in your case a better approach to track check box changes and perform the desired actions is described in this help article - GridViewCheckBoxColumn.

A bit off topic, I would like to remind you that your subscription package has expired, which means that you are no longer entitled for our support services. I would highly recommend upgrading your license to the latest version in order to continue getting product updates and uninterrupted support services. Please, contact sales@telerik.com or visit your account for your upgrading options.

I hope that you find this information helpful. Should you have any other questions, do not hesitate to contact us.
 
Greetings,
Stefan
the Telerik team
Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Tags
GridView
Asked by
Hilda Kenny
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or