Home > Net >  Winform DataGridView merged cell data showed ghosting
Winform DataGridView merged cell data showed ghosting

Time:11-17

Use merge cells RowMergeView third party controls, merged cell data a few can not have a problem, more than once display data, made the height is not the same in each cell, shows the ghosting, but the mouse to click the cell ghosting disappears, that is, when the redraw content calculation might be wrong, you great god who has solved the problem to consult,

CodePudding user response:

I met this problem, the DataGridView added a this can
 
///& lt; Summary>
///using the reflection set DataGridView double-buffering
///& lt;/summary>
///& lt; Param name="dataGridView & gt;"
Public void SetDataGridViewDB (System. Windows, Forms DataGridView DataGridView)
{
Type dgvType=dataGridView. GetType ();
System. Reflection. PropertyInfo PI=dgvType. GetProperty (" DoubleBuffered, "
System. Reflection. BindingFlags. Instance | System. Reflection. BindingFlags. NonPublic);
PI. SetValue (dataGridView, true, null);
}

CodePudding user response:

Can be vertical, horizontal or ghosting scintillation

CodePudding user response:

No, pull the scroll bar will be a coincidence

CodePudding user response:

The building Lord how to solve?
  • Related