Same Binding Source with 3 Grids

Same Binding Source with 3 Grids

Old forum URL: forums.lhotka.net/forums/t/10019.aspx


heisal posted on Wednesday, February 02, 2011

I have to insert data from 3 datagrids to  same table.So i given the DataSouce of 3 grids to same BindingSource and reused the business classes and stored procedures. But problem occured when a row is added to one grid,  the other two grids are also get added with rows.Can I reuse the same BindingSource , BusinessClasses & Stored Procedures?If  yes case what is the solution for not getting affected the other two grids?

JonnyBee replied on Thursday, February 03, 2011

Hi,

If the DataGridViews should work independentently then you should use separate listobjects (instances) and BindingSources.

You should be able to use the same BusinessClasses and stored procedure, but you need to create 3 separate instances.

 

Copyright (c) Marimer LLC