Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data binding to dataGrid and textBox

Status
Not open for further replies.

JontyMC

Programmer
Nov 26, 2001
1,276
GB
I have an object list bound to a datagrid. I also have each property of the object bound to a textbox so the user has two views of the data, a list (datagrid) and textboxes that have all the details of the current object.

This works, but there are a couple of issues. When I update the textboxes, for the datagrid to update I have to click on the datagrid (not v nice). Also, I cannot edit data in the datagrid, it simply resets to the value it was before editing.

There's a star in it for anyone who can help :)

Jon

"There are 10 types of people in the world... those who understand binary and those who don't.
 
If the bound object is a DataTable, you should not have this problem. If the bound object is an ArrayList calling ResumeBinding() will solve the problem:
Code:
BindingManagerBase bm1=BindingContext [m_Provinces, "LongName"];
 bm.ResumeBinding();
obislavu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top