AD
Administrator
Syncfusion Team
May 13, 2003 07:09 AM UTC
Attached is a sample that shows 3 grids used in a master-detail-subdetail manner.
You can still bind a textbox to a field in a datatable, and if that datatable is also bound to a griddataboundgrid, then the textbox will be bound to the grid column as well. This is true as long as the two controls have the same binding context. This will happen naturally if both the textbox and grid are on the form. But if the grid is in a panel, or groupbox or some other container, then you have to set the grid's BindingContext member equal to the form's BindingContext member.
this.gridDataBoundGrid.BindingContext = this.BindingContext; //set the grid's BC to the form's BC