Problem with tabpages
-
I have a win application that uses tabcontrol with two tabPages(tp1 & tp2). On the first tab page the user enters the product category name and that it's added to the tblCategory in the database. On the second page the user must select the category from the drop down then add products to the tblProducts. My problem is that when a user enters a category at tp1 that is added to the database correctly, however when they move to tp2 to add the product, the category that was just added on tp1 is not available immediately on the dropdown, i.e i must first close and re-start the application before it appears. How can i make the category available immediately on tp2 dropdown list? Dot
-
I have a win application that uses tabcontrol with two tabPages(tp1 & tp2). On the first tab page the user enters the product category name and that it's added to the tblCategory in the database. On the second page the user must select the category from the drop down then add products to the tblProducts. My problem is that when a user enters a category at tp1 that is added to the database correctly, however when they move to tp2 to add the product, the category that was just added on tp1 is not available immediately on the dropdown, i.e i must first close and re-start the application before it appears. How can i make the category available immediately on tp2 dropdown list? Dot
suppose that your dropdown named dropList. just you need to refresh the data source of dropList.
When you get mad...THINK twice that the only advice Tamimi - Code