
Form Designer code / form design window not synched on FlexGrid control
I put a C1FlexGrid on a form named frmMain, and name the flexgrid
TestGrid. I look at the Windows Form Designer generated code region
and see that the grid's columns collection property specifies 10
columns. I go to the [Design] page and go to TestGrid's properties,
and modify the collection down to 5 columns (which causes the flexgrid
on the screen to shrink from 10 columns to 5) and I go back and look
at the region. Instead of the region's code being updated, it's still
says 10 columns in its property collection. Effectively, the Form
Designer code says 10 columns (and if I run the app, that's what I'll
get), but if I go over to the [Design] page the grid control shows
only 5 columns on screen, and if I look at TestGrid's properties,
it'll report that the column count is only 5.
If I explicitly change the property within the region to 5 columns, I
can run the app and have a 5-columned grid. However, if I go to the
[Design] page and set TestGrid's column count property to 6, and then
go back to the Form Designer region, I'll see that the property has
now been set back to 10.
Maybe I'm just missing something, but I'm completely baffled right
now. I use this control every day and have never seen anything like
this. What could be going on?
thanks,
-matt