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....
Edited by user
14 years ago
|
Reason: Not specified