Selecting Cells In Flexgrid and Merging
I'm trying to use the Flexgrid. I want to merge a couple of cells but I have a couple of questions.
If I or a user selects 2 or more cells in the grid, how can I fill up the selected cells with text and then merge them? What I can't figure out is how to loop through the selected cells.
Also after a merge is performed, you cannot select multiple cells again. The grid is restricted to single cell selection. Can this be changed so that other cells can be selected and merged (while keeping the original merged cells intact)?
MSFlexGrid1.MergeCells = flexMergeFree
MSFlexGrid1.MergeCol(3) = True
MSFlexGrid1.TextMatrix(3, 3) = "GB"
MSFlexGrid1.TextMatrix(4, 3) = "GB"
MSFlexGrid1.TextMatrix(10, 3) = "GB"
MSFlexGrid1.TextMatrix(11, 3) = "GB"
Rather than reference the cells by the actual rows and columns, I want to fill in the user selected cells with a string.