Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making a dataset available in the designer
Message
 
 
To
11/10/2003 12:30:02
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00837820
Message ID:
00837830
Views:
35
Let me add, the ds I declared exixts in the project, so I declared it of a known type. Code looks like this:

Protected WithEvents ds as ClosingAgents.ds

In the Sub InitializeComponemts:

Me.ds = New ClosingAgents.ds()
CType(Me.DS,System.ComponentModel.ISupportInitialize).BeginInit()

I think that is all the code.

good luck,

~dab


>>Michael, I'm not certain of this, but I think it has to do with the InitializeComponent Sub in the codbehind page. Notice when you drop a dataset on a page the ds is declared at the top of the class WithEvents and instaniated in the InitializeComponent Sub. I haven't tried adding a control like this programmatically, so don't know how that would work. Seems it should. I normally add the dataset to the designer, let it generate its code, then modify it in the codebehind.
>>
>>Okay, I just tried it and the ds I added programmatically did appear as a datasource, so maybe you should look at that.
>
>While doing some research on this, I dropped a DataSet control on the Web form and configure it entirely to match the DataSet data received from the Web Service. I didn't succeed to have the data appear in the DataList but the aspx didn't give any error at run time.
>
>I assume however that I don't have to do all that as the data structure should be recognized automatically by an approach such as you just described.
>
>I'll keep looking at this.
>
>Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform