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

GridViewTemplate Name property?

2 Answers 77 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 20 Sep 2012, 09:37 PM
Hello,

I'm confused as to why I can't seem to find the Name property of a GridViewTemplate.  I get "Name is not a member of Telerik.WinControls.UI.GridViewTemplate."  Any ideas?

Thanks,
Dan
Public Sub SaveGridLayout(ByRef grd As RadGridView, Optional ByRef gvt As GridViewTemplate = Nothing)
 
    If gvt Is Nothing Then
        gvt = grd.MasterTemplate
    End If
 
    Dim Layout As String = grd.Name & "_" & gvt.Name

2 Answers, 1 is accepted

Sort by
0
Accepted
Stefan
Telerik team
answered on 25 Sep 2012, 10:25 AM
Hello Dan,

Thank you for writing.

GridViewTemplate does not have a Name property, instead it has a Caption property which you can use for the same purpose. Alternatively, you can use its Tag property.

I hope this helps.
 
Regards,
Stefan
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Dan
Top achievements
Rank 1
answered on 25 Sep 2012, 06:46 PM
Ok, thanks Stefan.  I find that a bit odd, but I can work around it.

Thanks,
Dan
Tags
GridView
Asked by
Dan
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Dan
Top achievements
Rank 1
Share this question
or