Adding vertical scroll bar in cell

Hi, I want to add vertical scroll bar for particular cell (example: for description row pls see attached doc) and I also don’t want to resize the cell size more the two rows. I created one class that will create the grid at runtime depending upon the User Control which calls that class. some time the description field will be in second row and some time it will be in fifth row etc.. i want to add scroll bar for that discription field alone. I tried autosize, vscroll and wordwarp. When I use auto size it keep on increase the cell size. I want to restrict the cell resize for two to three rows, then I want to add v scroll bar. And also tried table style but it sets the style for whole table. i want this feature for particular cell, i don’t know which row will be description field will come. Can you help me in this regards. Advance Thanks. Sorry for poor English.

Grid5.zip

3 Replies

AD Administrator Syncfusion Team April 10, 2006 09:49 AM UTC

Hi Wowrang, Please refer to the attached sample which sets the vertical scroll bar to a particular cell by handling the PrepareViewStyleInfo event and checking the previous column value ("Description") and then by setting the style.VerticalScrollbar to true which shows a vertical scroll bar when the text is being edited and does not fit in cell. And the row height can be restricted while resizing, by handling the ResizingRows event. Let us know if you need any further assistance. Regards, Calvin.

42878.zip


AD Administrator Syncfusion Team April 10, 2006 11:31 AM UTC

Thanks Calvin.


AD Administrator Syncfusion Team April 10, 2006 11:32 AM UTC

Thanks alot Calvin.

Loader.
Up arrow icon