Hi
i did custom control as was shown in
http://www.windowsforms.net/Forums/ShowPost.aspx tabIndex=1&tabId=41&PostID=20613
now i have painting errors - only cells in edit mode are painted, all other cells are not painted at all! i used RichTextBox as base for cellcontrol.
whats wrong
i have
visualC# express 8.0.50110.28
.net fwk 2.0.50110

Custom Columnt type, painting bug
FourT2
wakeup
it seems that during reading cell properties inside DataGridViewCell.OnPaint overriden method crashes drawing process and grid starts drawing from rowIndex=0 again, and thus no cells get their value -> drawing is wrong! using only OnPaint event method paramters (and none of the this.* properties) seems to work ok.
what and why reading any fields inside this.OnPaint of DataGridViewCell restarts drawing process
james_cline_
-mark
Microsoft
This post is provided "as-is"