![]() |
| ||
| How to refresh Combobox items Hi I am populating my combobox with table's data (example table name is "ITEMS" and table is having only one column and that is displayed as combobox items). In my form i am having i combobox,button and textbox. I will enter a new item in textbox and if i click on button, that new item will be stored in a table i.e. "ITEMS"). my problem is that new item has to be displayed in combobox items without closing my form and again opening it. If i click button by entering new item in textbox that value has to be stored in table and combobox has to be populated with new item. Thanks |
| ||
| Re: How to refresh Combobox items A form doesn't close by itself. Could you send your code with the eventhandler of the button? |
| ||
| Re: How to refresh Combobox items When you "open" the form, include as part of the calling to open method an update of your combobox items. |
| ||
| Re: How to refresh Combobox items Yo dude, you can always just refresh the connection, you don't need to close your form, i take it you want something like this using System.Data.SqlClient; Hope that helps ... |
| ||
| Re: How to refresh Combobox items Hi Thanks alot. it worked for me |
| ||
| Re: How to refresh Combobox items Cooooollll |
| All times are GMT -4. The time now is 5:23 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC