Hi,
We are using WebHierarchicalDataGrid grid in Infragistics Version 13.1. We want the cell height to be auto adjustable so that it can accommodate all the cell contents keeping cell width to be constant.
AS an example, suppose I have this value in my Media Column: “Media1, Media2, Media3, Media4, Media5”.
Now if had kept the cell height and width to be constant it will wrap the text and will display: “Media1, Media2…” but we want that it should adjust the height as per cell contents and my display should be like this:
Media
Media1, Media2,
Media3, Media4,
Media5
Please let us know how we achieve this?
Just to let you know, we were using Dev Express grid earlier before upgrading to Infragistics and it had a property which allowed us this feature:
this.gridView.OptionsView.RowAutoHeight = true;
Ho rmsdev,
Please let me know If you need any additional assistance.
Hi rmsdev,
Upon adding the grid to the page, the default settings of the grid (unless otherwise changed in properties), is such that the contents of a grid cell will wrap to the next line. So, by this, the column cell width remains constant, and the cell height will auto size to accommodate the text of the cell.
I have provided an example for your reference.
If you are finding a different behavior, please provide an example that demonstrates the behavior or modify my sample attached here, such that it reproduces the behavior, and re-attach to this thread. I will then look further into this matter for you.
thanks!
**Please note that I omitted the style sheets due to file size constraints. For proper styling of the grid you will need to bring the ig_res folder back into the project. You can do this by opening the project in the designer and select 'OK' when prompted to accept the sytle sheets.