Link to home
Start Free TrialLog in
Avatar of PoeticAudio
PoeticAudio

asked on

Is the following possible in a Datagrid/Dataset?

Okay They are wanting me to have a datagrid that shows data from a particular table... There is a column in the table called wasMailed... it holds true or false. The datagrid displays this as a checkbox.

here is the tough part...
Any row that has a checkbox checked in the datagrid needs to be read-only, but the actual checkbox itself needs to be editable... So some rows will be read-only (depending on the check value) and some will not, but the wasMailed column will never be read-only...

Can that be done? (I'm sure it can, i'm just not quite sure how)
Avatar of Ready1
Ready1
Flag of Australia image

if you are using the stock grid from VS then you have no chance of getting this done.

Basically what needs to happen is:

* you will need to capture the on cell edit of the gridrow and if the checkbox is ticked then cancel the event UNLESS the cell being edited is the cell containing the checkbox.

Regards,
Ready1
ASKER CERTIFIED SOLUTION
Avatar of sumix
sumix

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial