Completed
Last Updated: 31 Mar 2014 10:11 by ADMIN
ADMIN
Stefan
Created on: 23 Oct 2013 09:32
Category: GridView
Type: Bug Report
0
FIX. RadGridView - hierarchy is not generated when manually adding the columns and the FieldName of the column is set after the column is added
To reproduce:
 Dim RadGridView1 As New RadGridView
        Me.Controls.Add(RadGridView1)
        RadGridView1.Dock = DockStyle.Fill

        Dim r As New Random()
        Dim table As New DataTable()
        table.Columns.Add("ID", GetType(Integer))
      
1 comment
ADMIN
Ralitsa
Posted on: 27 Feb 2014 17:18
Hierarchy in RadGridView depends on the names of the columns which should be unique. To ensure their uniqueness RadGridView generates their names when columns are adding into RadGridView. There is no restriction for FieldName property to be unique. So, if you set it after the adding the column into the columns collection, this will not reflect to the unique name of the column. We consider this behavior for normal and there are no needs from improvements.