Hi Rich,
1. Virtual grid just reflects whatever in your datasource. For adding / removing row, you need to add it in the datasource. Refer to the attached sample that demonstrates to add new row with a help of the BindingManagerBase.
2. In the PrepareViewStyleInfo event handler, add the below code, for having alternating background colors for rows.
if(e.RowIndex > 0 && e.ColIndex > 0 && e.RowIndex % 2 == 1)
e.Style.BackColor = Color.LightBlue;
else
e.Style.BackColor = Color.DodgerBlue;
3. To have background color for the current cell upon cursor entering, PrepareViewStyleInfo event will help in doing it.
GridCurrentCell cc = this.gridControl1.CurrentCell;
if(e.RowIndex == cc.RowIndex && cc.IsEditing)
{
e.Style.BackColor = Color.LightYellow;
}
Here is a sample demonstrating the above mentioned features.
VirtualGridSample.zip
Let us know if you need any further assistance.
Regards,
Rajagopal