textbox and databinding

  • Thread starter Thread starter Alcibiade
  • Start date Start date
A

Alcibiade

Hi to all,
I'm using some textboxes in binding with dataset.....
I'd like to forbidden the user to modify inserted record, as having a read
only databinding.
How could I get it?

I've tried to insert all textboxes in a disabled groupbox and make it
enabled only when a new record is added, but unofortunately disabled
textbox are hard to read.
Thanks

PS: I 've posted this question in many groups, but until now I have not
received any answer.
 
Setting ReadOnly to True is similar to setting Enabled to False. By setting
the ReadOnly property to True, the text in the textbox cannot be changed by
the user. However, the text is displayed in the same style as for an text
box that is enabled, while the background color is set as if Enabled is set
to False. The result is a format that indicates that text entry is not
available, while maintaining full visibility for the text item. This is
what OP needs for the situation that has been described..
 
I'm sorry, you are right!
I think I will use this solution so!

Any solution about binding instead? I 've found suspend binding maybe could
help me....
Thanks
 
Back
Top