G
Guest
Can I en/disable cells in a gridview based on the content of other values
instead of only an entire column at a time?
instead of only an entire column at a time?
I assume you mean the gridview of a form:Dan said:Can I en/disable cells in a gridview based on the content of other values
instead of only an entire column at a time?
Stefan Hoffmann said:I assume you mean the gridview of a form:
As each cell represents a control, you can use this control to set
Active and/or Locked to False.
You need to set Locked = False in to Form_Current event.Dan said:How do I get a specific cell cell? Me.ControlName.Enabled toggles the
entire column.
Stefan Hoffmann said:You need to set Locked = False in to Form_Current event.
But the Form_Current event can unlock it, if you click in a row whereDan said:Locked defaults to false for bound controls. ControlName.Locked also
affects the entire column, not individual cells within it.
Stefan Hoffmann said:hi Dan,
But the Form_Current event can unlock it, if you click in a row where
you should edit it.
Dan Neely said:I'm not clear what you're suggesting I do here.