DataGridView RecordSource on same instance of MDI Child
-
i have a search textbox and search button on the MainForm (MdiParent). when users clicks on search button it shows the search results from the customer table in ChildForm's dataGridView. but since i only show the same instance of the ChildForm, it only works for the first time. how do i show the new search results without creating new ChildForm instance? Thanks
-
i have a search textbox and search button on the MainForm (MdiParent). when users clicks on search button it shows the search results from the customer table in ChildForm's dataGridView. but since i only show the same instance of the ChildForm, it only works for the first time. how do i show the new search results without creating new ChildForm instance? Thanks
are you using a dataset result and databinding the grid each time you search? Or have you bound the grid at design time? Johny
-
are you using a dataset result and databinding the grid each time you search? Or have you bound the grid at design time? Johny
The results are datasets.
-
The results are datasets.
try clearing the datset on each click event before your databind call. like mydataset.clear() mydataadapter.fill(mydataset) mydatagrid.datasource = mydataset mydatagrid.databind() or you can create a temp table and use a command builder to run updates on that table. Regards, Johny Rodriguez The GDC, New York.