Adjust Column
Hi Dapfor-Team!
I override the CellPaint event and in one of my columns i draw some custom stuff. My problem is when i adjust the column the calculated width matches to the text in the cell (which would be drawn if i wouldnt draw my own custom stuff) but not to my custom drawn stuff. Is it possible to influence the adjust column process?
0
-
We will add this functionality to a new version of the grid, which will be released this week.
Best regards,
The Dapfor team0 -
Hi,
We have added a new event MeasureCellWidth enabling to set a custom width while column size adjusting.
grid.MeasureCellWidth += delegate(object sender, MeasureCellWidthEventArgs e)
{
//Add extra width to be taken into account when adjusting columns.
e.TotalWidth += 30;
};
Best regards,
The Dapfor Team0 -
Thanx! this will solve my problem!
0
Please sign in to leave a comment.
Comments
3 comments