D
dtoffe
Guest
Hi,
I want to use a DataGridView providing my own implementation of DataGridViewRowHeaderCell and DataGridViewTopLeftHeaderCell, so that I can put CheckBoxes in them.
I add the new classes in the form loading, and the checkboxes work fine, but if i sort the DataGridView, the DataGridView seems to be repainted and my cells are replaced by standard header cells.
So I add my implementations again in the OnPrePaint event of the DataGridView and now my implementation are shows even when I sort the DataGridView, but it flickers as if it were continually repainting everything.
What is the proper way of providing my own implementations of DatagridViewRowHeaderCell and DataGridViewTopLeftHeaderCell ??
Thanks,
Daniel
Continue reading...
I want to use a DataGridView providing my own implementation of DataGridViewRowHeaderCell and DataGridViewTopLeftHeaderCell, so that I can put CheckBoxes in them.
I add the new classes in the form loading, and the checkboxes work fine, but if i sort the DataGridView, the DataGridView seems to be repainted and my cells are replaced by standard header cells.
So I add my implementations again in the OnPrePaint event of the DataGridView and now my implementation are shows even when I sort the DataGridView, but it flickers as if it were continually repainting everything.
What is the proper way of providing my own implementations of DatagridViewRowHeaderCell and DataGridViewTopLeftHeaderCell ??
Thanks,
Daniel
Continue reading...