Presenting the DataGridViewLargeTextBoxCell

Today i decided to experiment a bit with custom DataGridViewCell implementations. If you insert large text into a DataGridView it will (at best) wrap the text. I wanted my DataGridView to behave like Excel so that the whole text is displayed. Here are a couple of screenshots of the result:

the large text flows over it's surrounding columns the editingcontrol is resized to fit the complete text

Feel free to download CustomDataGridViewCells.zip.

This entry was posted on Saturday, January 27th, 2007 at 01:34 and is filed under C#, Windows Forms. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.

One Response to “Presenting the DataGridViewLargeTextBoxCell”

  1. Robert Gowland says:

    Hey Tim,

    Thanks for the head start on this widget. I’ve added to your work for a recent project and thought you might like to see what I’ve done.

    http://www.gowland.ca/datagridviewspanningtextboxcell