Link to home
Start Free TrialLog in
Avatar of thuhue
thuhue

asked on

Prevent blanking out text in readonly textboxes in a datagrid on a winform.

A datagrid is made by a third party and placed on a winform. Textboxes in that grid are set readonly to display some text. It is found cursor can move in and blank out the text. What event can be added to those textboxes to prevent cursor from moving in and blanking out text displayed in them?  Suppose we can code that in the form load event ? Please advise how.
Avatar of Kwoof
Kwoof

do you need to make any changes?  You could enable the locked attribute of the control?

Is this the desired functionality of the 3rd party who made the control?
Avatar of thuhue

ASKER

Locked property is not found on that Datagrid. Could something like preventing cursor from entering the cell be done here ?
Avatar of angus_young_acdc
If it is a 3rd party it depends what event handlers / properties are available.  In the out-of-the-box version you can set the cells to not be c hangable by users.  look for Allow Edit
Do you need the special functions of this 3rd party datagrid over a standard datagrid?
Avatar of thuhue

ASKER

Please advise on both.
Do you have the documentation on the 3rd party datagrid?  Is it a common commercial one, or a specially developed one?  It is hard to advise about an unknown control!
ASKER CERTIFIED SOLUTION
Avatar of thuhue
thuhue

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
Avatar of thuhue

ASKER

Question is taken back