Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to provide the ability to resize rows

$
0
0

Description:
 I am trying to provide my end-users with the ability to change a specific row's height via the mouse. Is there a way to implement this feature?

Solution:
 The XtraGrid doesn’t provide such a feature automatically due to the fact that it doesn't cache any data internally. Thus it can’t store different row sizes. However, you can implement this task yourself. To do this you should handle the GridView's MouseDown, MouseUp and CalcRowHeight events. Within the MouseDown and the MouseUp events you should handle row size changing. Within the CalcRowHeight event handler you should pass the valid row height for a specific row. In the attached project you will find a sample project which demonstrates this task

Example Comments

Added By: Filan Behmen at: 12/11/2013 2:35:19 AM    

There is bug in this code. When you filter the rows and then delte the filter, then visible rows become huge. Please help!


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>