Hi All,
My first post here so I'll try and explain what I need help with as easy as possible.
I have a DataGridView control on a form, there are 4 different columns. In order from left to right the columns are Line Number, Date, Time, Message.
The DataGridView is in Virtual Mode and by handling the CellValueNeeded event I populate it using a buffer with the data.
In the message cell I have multiple lines. What I would like to know is if there is a way for certain cell that contain multiple lines to be able to expand and retract. For example if the lines in the message are more than 1 to be able to display the first line only and by double clicking on the cell to expand the cell to display all the lines and vice versa.
At the moment I've created an example to display 1 line or all lines by handling a CheckBox CheckStateChanged and testing in a certain row of the DataGridView. The cell contents (ie. the Message) does change but the row heigh never changes to adjust to the text size inside the cell. I did try Refresh(), AutoResizeRows() to the DataGridView but made no difference.
Any ideas? Looking forward for some advice.
Thank you,
James