Vertical scroll refresh problem

Hi, I have the following code within PrepareViewStyleInfo. It works correctly on load however when I V scroll the cell colours overlap. In the code below I am changing the Backcolor - What I want to do is make the repeating company name not visible. Thanks Iain //Do not display repeating company names if (e.RowIndex > 1 && e.ColIndex == 1 ) { if (e.Style.Text == _strPreviousCellC_Name) { e.Style.BackColor = system.Drawing.SystemColors.ControlDark; } else {_strPreviousCellC_Name = e.Style.Text; } }

1 Reply

AD Administrator Syncfusion Team September 22, 2005 12:50 PM UTC

Hi Iain, Try enabling the pixel scrolling to see if that helps: private void Form1_Load(object sender, System.EventArgs e) { this.gridControl1.VScrollPixel = true; this.gridControl1.HScrollPixel = true; } Best regards, Jay N

Loader.
Up arrow icon