PC Review


Reply
Thread Tools Rate Thread

Bindable property with options in drop down list?

 
 
tombow
Guest
Posts: n/a
 
      25th Apr 2007
I created a custom control (call it MyWidget) in a C# web control
library. MyWidget has a SqlDataSource property:

public abstract class MyWidget : WebControl
{
// .... snipped

private SqlDataSource myds;

[Bindable(true)]
[Category("_Custom")]
public SqlDataSource DataSource
{
get { return myds; }
set { myds = value; }
}
}

In the VS.NET designer's property window, I want a list of available/
existing SqlDataSource's the programmer can pick from in a drop down
list box. I'd also like it if the property can't be null. How can I do
this?
thanks,
Tombow

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Adding a Bindable Property to an Web User Control Andrew Hayes Microsoft C# .NET 0 20th Nov 2006 10:06 AM
Visible Bindable Property - Eval code help Steve Microsoft ASP .NET 1 30th Sep 2006 09:00 AM
c# property exposed as COM bindable property Miguel.Herrera@visy.com.au Microsoft C# .NET 3 13th Oct 2005 08:10 AM
bindable property to extend the textbox Tommy Microsoft Dot NET Framework 0 5th Nov 2004 03:34 AM
create a bindable property Tommy Microsoft ASP .NET 0 4th Nov 2004 02:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:50 AM.