KG2V
  • KG2V
  • Newbie Topic Starter
2015-06-12T17:52:07Z
Hi Gang,
I'm in the middle of a project (C# framework 4.5) where I'm converting some Excel VBA code that uses iGrid300

The version the company purchased (evidently a while ago) is 4.6

The code in question

           For c = 1 To cRowDimInfo.count
                If bStopColHeaderBackGround = False Then
                .ColHeaderBackColor(c) = vbf_Grid_ColHeaderBackColour
                    If bStopRowHeaderBackGround = False Then
                        With .ColDefaultCell(c)
                            .oBackColor = vbf_Grid_ColHeaderBackColour
                        End With
                    End If
                End If
                .ColHeaderText(c) = cRowDimInfo(c).DimName
                .ColHeaderTextFlags(c) = igTextCenter Or igTextVCenter Or igTextSingleLine


OK, I get the changes to the textflags and the like, BUT:

the question is - I can't find what has replaced
ColDefaultCell[c]

Basically, how do I set the default Style for a particular column?
Igor/10Tec
2015-06-13T05:40:08Z
The ColDefaultCell property of iGrid is still on its place - we have never removed it from iGrid. And it is the proper place to set formatting for new cells in a column.

Can you send us a project that demonstrates the issue?
KG2V
  • KG2V
  • Newbie Topic Starter
2015-06-15T14:32:11Z
Found what I was doing wrong, thanks