PC Review


Reply
Thread Tools Rate Thread

defining the datasource property

 
 
praveen benna via DotNetMonster.com
Guest
Posts: n/a
 
      7th Feb 2005
hi,
I wanted to create windows custom control which contains a tree view and
grid.The tree view contains folder directory and grid reflects the contents
of selected folder.(similar to windows explorer window)
In order to populate data in to the widget i need to define the datasource
property for the widget so that either i can bind at design time or at
runtime.can any one help me

regards
praveen

--
Message posted via http://www.dotnetmonster.com
 
Reply With Quote
 
 
 
 
John Puopolo
Guest
Posts: n/a
 
      7th Feb 2005
Praveen:

The DataGrid and some of the other controls can bind to any data source that
implements IEnumerable/IList and the like (check specifics for the control).
If the tree control you are using does not implement one of those
interfaces, you can always have an array (or similar) that holds the
information for the tree control - you can then bind the grid to the array.

John Puopolo


"praveen benna via DotNetMonster.com" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
> hi,
> I wanted to create windows custom control which contains a tree view and
> grid.The tree view contains folder directory and grid reflects the

contents
> of selected folder.(similar to windows explorer window)
> In order to populate data in to the widget i need to define the datasource
> property for the widget so that either i can bind at design time or at
> runtime.can any one help me
>
> regards
> praveen
>
> --
> Message posted via http://www.dotnetmonster.com



 
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
defining a flexible PROPERTY =?Utf-8?B?Z2FkeWE=?= Microsoft VB .NET 2 8th Mar 2007 06:38 PM
defining a flexible PROPERTY =?Utf-8?B?Z2FkeWE=?= Microsoft Dot NET 0 7th Mar 2007 02:26 PM
Defining property getters and settings in cpp file Mark Ingram Microsoft VC .NET 4 20th Nov 2006 02:02 PM
Defining the 'Source Database' Query Property =?Utf-8?B?Qnl6YW50aW5l?= Microsoft Access Queries 5 23rd Nov 2005 10:41 PM
Defining a Property =?Utf-8?B?Q29keQ==?= Microsoft Excel Programming 2 7th Sep 2005 01:22 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:03 PM.