wopag
  • wopag
  • Member Topic Starter
14 years ago


Is there a way to automatically paint the grid with to update the CellBackColor ?

i.e. I have set BackColorEvenRows and BackColorOddRows but when deleting a row - the odd/even rows do not repaint with their new updated colours ?



Igor/10Tec
14 years ago
Strange, we have just checked that - all works as expected, we could not reproduce the problem. Can you send us a sample project that demonstrates the bug?

As a general advice: if you need to force iGrid to update its contents, use its Refresh method.
torrid
14 years ago
I have had same issue multiple times.... when I pull igrid into a single form demo project without all of my code..... and basically try to make a sample do this... I cannot get it to happen... but on our igrid... when you add new rows.... it does NOT put the back color on every other row that is added... they all come up with no backcolor....

All we do is call .AddRow so there is not reason why it should not work....

Private Sub pAddNewRow()

Dim lCurRow As Long

lCurRow = iGrid1.curRow

If lCurRow < 1 Or lCurRow >= iGrid1.RowCount Then
MsgBox "Select a row! New row will be added before your selection.", vbCritical
Exit Sub
End If

With iGrid1
.Redraw = False

' Create a new record in the grid
.AddRow vRowBefore:=lCurRow
regenRowNums
' Highlight the appropriate row
If lCurRow = iGrid1.RowCount And iGrid1.RowCount > 1 Then lCurRow = lCurRow - 1
iGrid1.SetCurCell lCurRow, iGrid1.CurCol
iGrid1.SetFocus

.Redraw = True
End With
End Sub

We are not using the latest control however as it would require us to do a lot of recoding....
Igor/10Tec
14 years ago
Originally Posted by: torrid 

I have had same issue multiple times.... when I pull igrid into a single form demo project without all of my code..... and basically try to make a sample do this... I cannot get it to happen... but on our igrid... when you add new rows.... it does NOT put the back color on every other row that is added... they all come up with no backcolor....



Guys, we would be glad to fix the bug, but you as developers should understand us - how can we fix it if we cannot reproduce it?

Originally Posted by: torrid 

We are not using the latest control however as it would require us to do a lot of recoding....



It would be insanity to support all the versions we ever released. That's why we (like almost all software companies in our market) fix bugs only in the latest versions.

In any case, we would also recommend that you try the latest iGrid at least in your problem form. Some problems with BackColorEvenRows/BackColorOddRows were fixed earlier, so perhaps this problem already went away in the latest releases.