views:

398

answers:

2

So, I have a DataGridView that has multi-line data. I set the default cell style to have wrap turned on for cells so that the multi-line data is displayed rather than it all being on one line. However, when the data is larger than the DataGridView height the vertical scroll doesn't really work well. It snaps to the top of the cells such that the stuff that is beyond the height of the DataGridView is never visible. When I scroll with the scroll bar it just snaps to the top of the next cell, so I never get to see all the contents of the multi-line cell. Is there a way to add a scroll bar to the cell, or preferably a way to make the DataGridView scrollbar not snap to cell tops?

A: 

You can add a text box or richtextbox to the datagridview cell

Rajesh VR
A: 

This is a duplicate of this question: http://stackoverflow.com/questions/830211/how-do-i-make-a-datagridview-that-doesnt-snap-its-rows-to-the-top-of-the-control See my answer there.

mhenry1384