Click here to Skip to main content
15,900,973 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using a datagrid in my application and want to bind the datagrid column to a bindingsource column is it posible if so how?
ie i want like this
perTestCtr.DataGrid.Columns["Perameter"].DataPropertyName  = bindingSourceParameter.(column Name of binding source) 

Please help me some one
Posted

1 solution

You don't bind a DGV column, this implies that you could use multiple data sources for 1 DGV and that is not possible.

You should be simply setting the DGVs datasource to the bindingsource. If you have auto generate columns the the bindinsource columns are used for the column title otherwise you can set the caption in the DGV when you define the columns.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900