|
-
Aug 21st, 2007, 02:23 AM
#1
Thread Starter
Hyperactive Member
[02/03] How to work data binding with dataset.
Hi All,
I would like make a question against data binding with dataset.
I’m new of vb.net. Before I used .net I’m vb6 programmer. When I’m using vb6 I can’t easily call another form function to refresh combobox follow record added to database table.
Example,
I got a department table, table contains only 1 field. The field stores all unique department name of company. The department record can retrieve through some of the window form. When User has to update current record or add new record into database table. The user needs to open a parent form, through the parent form the user need to open a new form to do the transaction of adding or updating.
Here is my QUESTION; when the user updated or added new record. The parent form combobox will refresh the database record. In VB6 this task is quite simple but IN vb.net I really very new of .net. I search all the solution from internet and vbforum. I read some articles and thread such as jmcilhinney and others post. I get the information with data binding and dataset can solve my PROBLEM. However, I tried all the step and code but can’t work because I’m noobiez of .net. I ever used dataset when university assignment by vs 2005.I can create dataset easily but now I’m using vs 2003. How can I create the dataset and binding with my combobox. When record updated or added, another activated form will auto refresh the data with this no matter in combo box or listview or dvg.
PARENT FORM CLICK THE ADD BUTTON WILL SHOWDIALOG OF ANOTHER FORM TO ADD RECORD.

FORM OPEN FROM PARENT FORM WHEN RECORD SAVED, PARENT FORM WILL REFRESH THE COMBOBOX.

ABOVE JUST A EXAMPLE.
Hope anyone of here can give me some advice, your advice are appreciated.
Where there is no hope, there can be no endeavor.
There are two ways of rising in the world, either by your own industry or by the folly of others.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|