Hello,
I am trying to resize the height of the row after binding it with a data source.
The row whose height need to be re-sized depends upon the content in it.
As shown in the image attached , Rows 1 & 2 in the Current & Future costs Grid need to be resized i.e Height changed so that the user sees the multi lines in the columns.
Now for columns with out multi line data I would like to position the data in the center of the column.
I wanted to know how this can be achieved.
Hoping for a quick reply.
Thanks,Ashwin
To auto-size the height of the rows, set UltraGrid.DisplayLayout.Override.RowSizing to one of the 'Auto' settings. To center-align cell content use the UltraGridColumn.CellAppearance.TextHAlign/TextVAlign properties.
Thanks for the quick reply Brian, Very much appreciated !
I tired what you said and seems to be working fine. Thank You.
I have one more problem, I am not sure if I need to submit a post or I should post it here itself. I think I will do both.
In the image that I posted earlier you can see a Disc# column which is of Style URL.
The underlying Datasource for the columns which display multiple values is of type string.
For the Disc# column of Style URL when I pass in a sting which is some thing like this
viewRow.DiscountNumber = cost.DiscountNumber + Environment.NewLine + Environment.NewLine + cost.RipHistory.DiscountNumber;
It seems to appear one below the other with out any new line ( I have attached a new image ) and the everything displayed in the column is considered as one URL and not two separate URLS.
Is there a way I can have multiple URLS displayed in a single cell ?