HighTechTalks DotNet Forums  

why not show in grid & textbox synchronous

Dotnet Framework (WinForms DataBinding) microsoft.public.dotnet.framework.windowsforms.databinding


Discuss why not show in grid & textbox synchronous in the Dotnet Framework (WinForms DataBinding) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
wu jianhua
 
Posts: n/a

Default why not show in grid & textbox synchronous - 04-15-2006 , 05:16 AM






hi,
I use .net 2003, In form I have a grid and some textboxs.
DataView view = ......
grid.DatSource = view;
and add binding for textBox, like :
TxtCode.DataBindings.Add( "Text", view.Table, "cust_code" );
TxtName.DataBindings.Add( "Text", view.Table, "cust_name" );
when I scroll my grid, textbox.Text do not change, it is fixed.
I don't know why, please help me.
Thanks.
wu jianhua.




Reply With Quote
  #2  
Old   
jimmy
 
Posts: n/a

Default Re: why not show in grid & textbox synchronous - 04-20-2006 , 05:22 PM






maybe try something like:

TxtCode.DataBindings.Add("Text", view, "Table.cust_code");
TxtName.DataBindings.Add("Text", view, "Table.cust_name");

don't know if it will work for sure, but i know that binding managers
can be picky about this point


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.