hi,
After the gridcontrol was loaded with cells (some merged, some not) consisting of checkbox, dropdown, textbox, etc,
the gridcontrol instance would not have a 'CurrentCell' object nested inside yet.
('HasCurrentCell = false, RowIndex = -1, ColumnIndex = 1, etc')
At this time, if we amend the gridcontrol with more rows and columns, and merge some of the cells, all worked out fine.
BUT,
if we "clicked" on the gridcontrol then only has some functions amend
the grid with more rows and columns, the '.CreateMergedCell' function
will not work properly.
Result, a specific row with 4 columns
merged looks fine. But when we select/click on it, you can see
highlighted cells are not merged.
Basically, the problem lies within the activated gridcontrol that was triggered by clicking on it.
If we load it the first time, or we load it after that, "without" clicking on the grid at all, all worked well.
I
have been trying for two days to try and restore the "unactivated
state" of the grid control whenever rows and columns need to be added
and merged.
Do let me know if there is a fix for this thanks.
Darren.