Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search Window / Update Window
Message
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00726734
Message ID:
00727018
Views:
22
Roland,

The second form will have the reference to the DataSet so you could set your databinding like you would normally:
Me.txtName.DataBindings.Clear()
Me.txtName.DataBindings.Add("Text",MyDataSet,"MyTable.myfield")
>Hi Cathi,
>
>Would it take a lot of coding or could I use the properties of the controls to do the bindings?
>
>What would the basic coding look like to accomplish this.
>
>Thanks
>Roland
>============================================================================
>
>>Roland,
>>
>>You could pass the DataSet when you click on the button to the second form and then set the controls on that form to the DataSet.
>>
>>>Hi,
>>>
>>>I using windows form vb.net project.
>>>
>>>Created two form
>>>
>>>Form1:
>>>
>>> SqlConnection, SqlDataAdapter, and Dataset
>>>
>>> has textbox for entering serach criteria and go search button.
>>>
>>> Grid to display the dataset.
>>>
>>>Form2:
>>>
>>> Textboxes, comboboxes etc for the fields that I want to update.
>>>
>>>How do you use the second window so that it references the dataset from the first form? I want to click a button and show secord form with all related controls and the proper row that was selected from the grid in form 1.
>>>
>>>I read about it but can't remember where. Seems like it was one line of code. ??????
>>>
>>>Thanks
>>>Roland
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Reply
Map
View

Click here to load this message in the networking platform