i got a combo box and datagridview in my form and few other controls (to insert new record into my database),after the insertion is succcesful i want the inserted item to be displayed in my combo box and gridview by then only (i.e without restarting the project) could u please help me out..

Re: update the items in controls after inserting new records into data base 80 80

You could use a BindingSource with the DataGridView. Then when your records are inserted successfully call the ResetBindings() Method. Click Here

Add the item to the Combox Items List.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.