1
I have a datagrid(c# windows Forms) that I need to use for editing and I am populating with information coming from the database of a table called "costs"
The Account Plan and Cost Center fields are filled in with information stored in the "costs" table. I have two other tables (Planoconta and Cost Center). My idea is to click on account plan or cost center and bring the data from the respective tables. I set the field according to image:
But when clicking on the field it does not bring me the data from the Planocontas table. I appreciate the help!
You have checked whether your planContasBindingSource is being populated?
– L. Albano
Hello Hello late, this yes... :(
– Anderson Machado
How do you populate it? If it is populated after it has been assigned to
DataSource
combo you need to call the methodResetBindings
(if I’m not mistaken).– L. Albano