This is a migrated thread and some comments may be shown as answers.

RadGridView as reuseable custom control

1 Answer 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Faheem
Top achievements
Rank 1
Faheem asked on 08 May 2012, 08:58 PM
Hi ,
i am new to WPF and Telerik Controls , so obvious answers are also appreciated . 
i need  to implement RadGridView as a custom resuseable control  as per client's requirements .i have created a radgridview in a wpf application with columns and their relevent bindings but client wants it as a custom control which when dragged to wpf window contains all columns by default and by just setting DataContext of the control will populate all the columns with data.
please guide me towards this implementation.
thanks               

1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 11 May 2012, 10:05 AM
Hello Faheem,

You can easily crate a UserControl that contains the whole GridView, defined with the all the settings that you need. Then you can set the GridView's ItemsSource to the coresponding collection in the Given DataContext. 

Let me know if you have any problems implementing it! 

Kind regards,
Nik
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Faheem
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or