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

VB.Net Custom Control Iinheriting RadGridView

3 Answers 114 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 1
Bob asked on 12 Nov 2010, 03:52 PM
I have created a custom control in VB.net which inherits a RadGridView.  When I drop it on the form, it looks nothing like the base control.  Does anyone know why this is and how I can make it look like the base control?  I have attached an image of the base control and the custom control.  The base control is on teh top and you can see the difference. 

Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 12 Nov 2010, 04:00 PM
Hi Bob, 

Please could you try the following (I.e making sure you have the ThemeClassName set) 
Let me know if this helps
Richard

Public Sub New()
    ' This call is required by the Windows Form Designer.
    Me.InitializeComponent()
    Me.ThemeClassName = "Telerik.WinControls.UI.RadGridView"
End Sub
0
Bob
Top achievements
Rank 1
answered on 12 Nov 2010, 04:20 PM
That workd.  Thank You.
0
Richard Slade
Top achievements
Rank 2
answered on 12 Nov 2010, 04:20 PM
Glad you have it sorted Bob. 
All the best
Richard
Tags
GridView
Asked by
Bob
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Bob
Top achievements
Rank 1
Share this question
or