Posted 26 April 2020, 12:46 am EST
After adding multiple unbound columns with AllowExpressionEditing to a flexgrid, the expression for each of the columns is reset to null when you use the expression editor to update a column’s expression.
To duplicate this:
-
open the sample at "ComponentOne Samples\WinForms\v4.5.2\ExpressionEditor\VB\FlexGridIntegration
-
add a button with the following event handler:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim column = C1FlexGrid1.Cols.Add()
column.Name = “CustomCol_” & C1FlexGrid1.Cols.Count
column.Caption = column.Name
column.DataType = GetType(Object)
column.AllowEditing = False
column.AllowExpressionEditing = True
End Sub -
use the expression editor on any of the columns added and notice that it resets the expressions previously assigned to the other added columns.