Groups | Blog | Home
all groups > dotnet datatools > november 2005 >

dotnet datatools : datatable and binding


Bill Angus
11/30/2005 1:51:12 PM
Using vb2005 and dotnet2, I have a RichTextbox control which is bound to =
a datasource. The binding works fine for manual editing. But I also want =
to modify the data programmatically... i.e. I want to strip some =
characters out of a text field with the following ...=20
rtbDescription.Text.Replace(Chr(141) & Chr(10), "")

When I execute the above code, the replacement gets performed perfectly =
"in the control". But the databinding goes out of synch. The databinding =
does not know that the control's text is in a dirty state and should be =
updated. Because of this, calling getchanges on the table returns null.

Is there something I can do like setting the textchanged event on the =
rtb control or something?

Thanks in advance for any help.=20

Have a great day!

RickNash
1/4/2006 10:24:28 AM

I have similar problem :confused:

I have a combo box which sets default values on other databoun
controls when a item is selected.

The only way I found to get this to work was

this.Visible = false;
this.Visible = true;

:eek:

Did you find a better way

--
RickNas
-----------------------------------------------------------------------
RickNash's Profile: http://www.hightechtalks.com/m64
View this thread: http://www.hightechtalks.com/t229829
AddThis Social Bookmark Button