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

Problem with CheckBox column

2 Answers 229 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Fabien
Top achievements
Rank 1
Fabien asked on 28 Sep 2010, 06:30 PM
Hi,

Can I trigger the "CurrentCellDirtyStateChanged" event like the standard DataGridView ?

A DataSource fills my RadGridView.

I would like to display the total number of rows that are checked in a checkBox Column of my radGridView.

When I check 3 rows on the the WinForm, I only get 2 rows checked. I have to check another one or set the focus on another control to get it.

Thanks for your help!

Fabien

2 Answers, 1 is accepted

Sort by
0
Accepted
Emanuel Varga
Top achievements
Rank 1
answered on 28 Sep 2010, 09:02 PM
Hello Fabien,

This is the current behavior for the GridControl, in order to set that value in the cell you have to leave the current cell in order for that value to change, because while the cell is in editing mode the value will not change. ( in order to revert in the case of a mistake )

You can always force an update by calling EndUpdate() which will set the changes.

Also there are a few other topics out there which talk about CheckBoxColumns, they might provide some interesting reading material.

Hope this helps, if you have any more questions please do not hesitate,

Best Regards,
Emanuel Varga
0
Fabien
Top achievements
Rank 1
answered on 18 Oct 2010, 10:00 AM
Thanks for your answer.

I used the "ActiveEditor" approach and it is working as expected !
Tags
GridView
Asked by
Fabien
Top achievements
Rank 1
Answers by
Emanuel Varga
Top achievements
Rank 1
Fabien
Top achievements
Rank 1
Share this question
or