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