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

GridViewTextBoxColumn

2 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
sajid
Top achievements
Rank 1
sajid asked on 29 Nov 2010, 10:39 AM
Private Sub TelricGridViewFormat()

        Dim textBoxColumn As New GridViewTextBoxColumn()
        With RadGridView1
            textBoxColumn.Name = "TextBoxColumn"
            textBoxColumn.HeaderText = "Item"
            textBoxColumn.FieldName = "DLC"
            textBoxColumn.MaxLength = 50
            textBoxColumn.TextAlignment = ContentAlignment.BottomRight
            RadGridView1.MasterTemplate.Columns.Add(textBoxColumn)
        End With
    End Sub

Type 'GridViewTextBoxColumn' is not defined error show on line one.

2 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 29 Nov 2010, 10:42 AM
Hello, 

Ensure that you have the following line at the top of your form

VB
Imports Telerik.WinControls.UI

C#
using Telerik.WinControls.UI;

Hope that helps
Richard
0
Emanuel Varga
Top achievements
Rank 1
answered on 29 Nov 2010, 09:12 PM
Hello,

Just wanted to add, that you might not have the necessary references to your project:
Telerik.WinControls.UI,
Telerik.WinControls,
Telerik.WinControls.GridView

and after use the imports/using sugested by Richard.

Hope this helps, if you have any other questions or comments, please let me know,

Best Regards,
Emanuel Varga

Telerik WinForms MVP
Tags
GridView
Asked by
sajid
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Emanuel Varga
Top achievements
Rank 1
Share this question
or