I thought that I had all of my DynamicBackColor issues resolved, but now the users want to Move Columns within the Grid and problems have appeared.
Before the Columns were Moved around, everything was set to the intended background color and worked well.
Now, after Columns get Moved around, I find that my DynamicBackColor is not behaving correctly.
My DynamicBackColor expression is based on the text string of the Column's ControlSource being contained within another fixed 'control' string (or not). And, as such, I thought that it would remain accurate even after a Column Move, but apparently not.
Before the column Move, the COLUMNn was the same as the ColumnOrder That is the 'n' of the COLUMN was the same as the ColumnOrder value.
So if:
Column5.ControlSource = "Leads.DOB"
Then
Column5.ColumnOrder = 5
And, I assume
COLUMN[5].ControlSource = "Leads.DOB"
After the column Move, the COLUMNn was the no longer same as the ColumnOrder That is the 'n' of the COLUMN was NOT the same as the ColumnOrder value.
Now if:
Column5.ControlSource = "Leads.DOB"
Then
Column5.ColumnOrder = 8
And
Column8.ControlSource = "Leads.Family Count"
Then
Column8.ColumnOrder = 5
But, I do not know if
COLUMN[5].ControlSource = "Leads.DOB" && ???
COLUMN[8].ControlSource = "Leads.Family Count" && ???
Or
COLUMN[5].ControlSource = "Leads.Family Count" && ???
COLUMN[8].ControlSource = "Leads.DOB" && ???
I always assumed that the COLUMNS worked to control the 'n' of COLUMNn instead of the ColumnOrder.
Perhaps you can enlighten me if that is in-correct.
Thanks,
JRB-Bldr
Before the Columns were Moved around, everything was set to the intended background color and worked well.
Now, after Columns get Moved around, I find that my DynamicBackColor is not behaving correctly.
My DynamicBackColor expression is based on the text string of the Column's ControlSource being contained within another fixed 'control' string (or not). And, as such, I thought that it would remain accurate even after a Column Move, but apparently not.
Before the column Move, the COLUMNn was the same as the ColumnOrder That is the 'n' of the COLUMN was the same as the ColumnOrder value.
So if:
Column5.ControlSource = "Leads.DOB"
Then
Column5.ColumnOrder = 5
And, I assume
COLUMN[5].ControlSource = "Leads.DOB"
After the column Move, the COLUMNn was the no longer same as the ColumnOrder That is the 'n' of the COLUMN was NOT the same as the ColumnOrder value.
Now if:
Column5.ControlSource = "Leads.DOB"
Then
Column5.ColumnOrder = 8
And
Column8.ControlSource = "Leads.Family Count"
Then
Column8.ColumnOrder = 5
But, I do not know if
COLUMN[5].ControlSource = "Leads.DOB" && ???
COLUMN[8].ControlSource = "Leads.Family Count" && ???
Or
COLUMN[5].ControlSource = "Leads.Family Count" && ???
COLUMN[8].ControlSource = "Leads.DOB" && ???
I always assumed that the COLUMNS worked to control the 'n' of COLUMNn instead of the ColumnOrder.
Perhaps you can enlighten me if that is in-correct.
Thanks,
JRB-Bldr