textbox and databinding

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.
 
E

eusclide

James Hahn said:
Set the texbox ReadOnly propeerty to True.

Setting ReadOnly propeerty to True has the same effect than setting enabled
property to false....
 
J

James Hahn

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..
 
A

Alcibiade

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top