![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi dennis, Based on my understanding, you bind a dataset both to a DataGrid and TextBoxes. You want to synchronize the DataGrid's content with TextBox. First, can you show me more detailed information about what is "position label" that displays "m of n"? I have no knowledage about this label. Second, is your textboxes' databinding set through designer or manual set in code at runtime? To synchronize DataGrid with TextBox databinding, we should set the same datasource for these controls. Like this: this.textBox1.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dataSet11, "jobs.job_id")); //and this.dataGrid1.DataMember = "jobs"; this.dataGrid1.DataSource = this.dataSet11; Then Winform will auto synchronize the databinding. If I misunderstand you, please feel free to tell me. ================================================== ============ Thank you for your patience and cooperation. If you have any questions or concerns, please feel free to post it in the group. I am standing by to be of assistance. Best regards, Jeffrey Tan Microsoft Online Partner Support Get Secure! - www.microsoft.com/security This posting is provided "as is" with no warranties and confers no rights. |
#4
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |