Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > DataColumn field in a collectioneditor

Reply
Thread Tools

DataColumn field in a collectioneditor

 
 
Geert
Guest
Posts: n/a
 
      10-13-2004

Hi,
It is the first time I am trying to build my own Usercontrol, so bare with me.

I have a Usercontrol inherited form "System.ComponentModel.Component"
One of the properties of my Control is a strongly typed collection.
I have implemented my own CollectionEditor.
It seems to work except for 1 property

I have a property in the collection class called
BindedDataColum of type DataColumn.
When I click on this property in the collectioneditor to enter a value it
does not show me anything.
It shows me a drop down with no values

However I have a Typed dataset on the Webform (The same Form I have my own
component on)

If I create a property of type datacolumn in the component itself ( at the
same level of my collection property) and I want to change this property I
get an overview of all datasets on my webform and I can descent to a
Datacolumn of a given dataset and datatable.

I want this behavior also in my own class I have used for the collectionItems.
But like I already explained It wil not show me any datasets.

I have also Implemented a Property called BindedWebControl as
"System.Web.UI.Control" In the Class I am using in the collectionEditor
When I Click on this property in the collectioneditor it wil show me the
webconbtrols of the webForm like I expected.
This seems to work.
Why is it not working for a property of type Datacolumn (Or DataTable, or
Dataset)
(Like I mentioned before ,If I implement a Property of type DataColumn in
the Component Itself it gives me an overview of all datasets,datatables and
columns of the WebForm)
It seems to me that the property in the Class I am using in the
collectioneditor is not
aware of any datasets on the webform.
Am I missing something ?
Can someone point me to a solution.
Or give me an example to solve this (If possible in VB)
--

Thanks for a quick reply

geert.martens

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CollectionEditor is always "Object Collection Editor" Nathan Phelps ASP .Net Building Controls 1 05-08-2004 04:01 AM
Frustrating problem with CollectionEditor - invoking another editor michael ASP .Net 0 05-01-2004 11:56 AM
Frustrating problem with CollectionEditor - invoking another editor michael ASP .Net Building Controls 0 05-01-2004 11:56 AM
UrlEditor from a CollectionEditor again gozza ASP .Net Building Controls 1 02-03-2004 03:11 AM
Invoking another Editor (UrlEditor) from an Editor (CollectionEditor) gozza ASP .Net Building Controls 1 02-02-2004 05:01 AM



Advertisments