defining the datasource property

  • Thread starter Thread starter praveen benna via DotNetMonster.com
  • Start date Start date
P

praveen benna via DotNetMonster.com

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top