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

Same GridView in differents TabItens

2 Answers 47 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Missing User
Missing User asked on 14 Mar 2012, 03:37 PM
Hello.
I need to implement a scenario in my application that is, a TabControl with 5 tabItens. Inside of each TabItem i need a GridView to display de data. The doubt is, the RadGridView, will be the same(i mean, have the same structure) for all of the TabItens, just it's ItensSource will be different, I don't know but seems to me that creating five same GridViews in XAML aren't the best way. I'm looking for a best and easier way to do this, can you help me with this?

Thank you.

2 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 15 Mar 2012, 09:10 AM
Hello,

 If you want you can define the grid in a custom user control with desired settings and reuse this user control in your tab items. 

Greetings,
Vlad
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Missing User
answered on 15 Mar 2012, 08:21 PM
Hello Vlad,

Thank you for your help, we decide to use another way, i've created a user control with HyperlInk Buttons, like a menu, and put the GridView below them, now when the user click in a hyperlinkbutton i just change the collection.

Best regards.

Tags
GridView
Asked by
Missing User
Answers by
Vlad
Telerik team
Missing User
Share this question
or