I'm a WinForms guy who is trying to work on a ASP.NET project.
I have two columns in a WebHierarchicalDataGrid control that are both bound to a boolean data source.
Each column is showing a checkbox control.
The first column is NOT editable and the second column IS editable.
I'd like to visually indicate to the user that one of the checkboxes is not editable.
How can I change the color of the checkbox in only one of the columns to be a light gray color?
Thanks,
Brian.
David,
I'm not auto generating the columns.
So, I was able to set the image for the disabled column to show custom images that look like they are disabled and other ones on the enabled column to show that the user can click and change the data.
Thanks for your time to help me out!
Hi Brian,
It sounds like you might be autogenerating your columns? If you define the columns, you can modify the CheckBox object on the BoundCheckBoxField column. Here you can set custom images for the Checked, Unchecked, and Partial images. You can set them to any image you want. If you're autogenerating, you could simply scan your data source (same as we do) to create your columns. If you don't want to do this, you'll have to hack into the Fields collection by accessing the Column object off of a GridRecordItem (a cell).
regards,David Young