Use Custom Checkbox as ItemRenderer for the DatagridColum. Override the set data method.
You can get the daatgrid row object in this set data method. Add necessary logic for enabling and disabling in the the set data method. Let me know if you still have issue.
The checkbox gets bound to some object from the data provider, so the easiest way to dynamically change the state of the checkbox is to simply reassign the value of the object that it's bound to. In short, let your data model do the work.
could you please send a sampl code... It will be more helpful
Using object we can make CheckBox selected or not selected. But how can I enable or disable it? that means can i access the check box enabled property in the mxml where I am using CheckBox in the datagrid column?
In what scenario you want to enable or disable check boxes ..?? What's the case you are working ..?? Pleaase elaborate your question.....
When i select a row in datarid,I want to know whether checkbox of that particular row is enabled/disabled and selected/not selected
Here is a helpful link for your scenario.
The example provided in th
link shows how to use an itemrenderer as a checkbox in a datagrid and how to access it. Basically, you will have a boolean property in the data grid row object from where you can know the checkbox selected value.
If this post is helpful to you, Please mark it as such.