Please provide me with FlyGrid columns initializaton, problem in this method.
I've tried to add into vertical grid sample node with string (you can try to replace code in the Vertical Grid sample with following code) and haven't found incorrectness:
Private Sub FillGrid()
vertGrid.Columns.Items.Clear()
vertGrid.Columns.Items.AddRange( _
New Column() { _
New Column("Name"), _
New DynamicallyAutoDetectDataTypeColumn("Value") _
} _
)
vertGrid.Columns.Items(0).Width = vertGrid.Width / 2
vertGrid.Columns.Items(0).ReadOnly = True
vertGrid.Columns.Items(0).CellBackColor = Color.FromArgb(246, 246, 244)
vertGrid.Columns.Items(1).Width = (vertGrid.Width / 2) - 8
AddHandler CType(vertGrid.Columns.Items(1), DynamicallyAutoDetectDataTypeColumn).GetDataType, AddressOf Me.vertGridColumn_GetDataType
vertGrid.Options = vertGrid.Options Or GridOptions.RowSelect
vertGrid.Rows.DataSource = New Object() { _
New Object() {"Color", Color.Transparent}, _
New Object() {"ContentAlignment", ContentAlignment.MiddleCenter}, _
New Object() {"DateTime", Date.Now}, _
New Object() {"Icon", MyBase.Icon.Clone}, _
New Object() {"Font", MyBase.Font.Clone}, _
New Object() {"BorderStyle", vertGrid.BorderStyle}, _
New Object() {"Options", vertGrid.Options}, _
New Object() {"Dock", MyBase.Dock}, _
New Object() {"Anchor", MyBase.Anchor}, _
'here is string type data ->>>>
New Object() {"Name", MyBase.Name}, _
New Object() {"Cursor", MyBase.Cursor}, _
New Object() {"CustomData(Yes or No)", MyYesNo.Yes}, _
New Object() {"CustomData(FileName based)", New FileNameBasedData(Me.GetType().Assembly.Location)}, _
New Object() {"Image Preview", pokemonsList.Images(2), GetType(System.Drawing.Image)} _
}
End Sub