Hi,
Attached code. For security reasons , i have not included the solution file and other dlls.Please add it to the solution you create. When i exceute the solution i get something like this -
Now , the first row has the same height as the second row. i understand , its because the custom cellvaluepresenter that i defined is getting applied to the field lable. What my requirements is that if the text is not large (like the first row) , the row height should be the normal height , while in case the text of the cell is large , the row height should be according to the custom defined height .please help asap
AnyOne???
Hello Raja,
Thank you for the sample code. I have been looking into it and I can suggest you set the DataRecordSizing mode of the FieldLayoutSettings to SizedToContentAndIndividuallySizable. This will make the records individually sizable and will allow different highs for every row. For additional reference on this matter you may find helpful the following forum thread which seems to be on the same topic:
http://blogs.infragistics.com/forums/t/50652.aspx
If you need any further assistance on this matter please do not hesitate to ask.
Hello RC,
I am just checking have you been able to resolve your issue? If you still need any assistance on the matter do not hesitate to ask.
In case the above suggestion helped you solve your issue please verify the thread as answered, so other users may take better advantage of it.
Please find the attached sample where I modified your code by adding DataRecordSizingMode="SizedToContentAndIndividuallySizable"
By setting this property you will allow to the XamDataGrid to provide different heights for every record. Furthermore you can handle the Loaded event of the ScrollViewer in your template and manually change the height of the records depending if the vertical scrollbar of the cell “Emplyee Name” is currently visible. You can achieve this by the following code snippet:
If you have any additional questions on this matter, please feel free to contact me.
Hi elena,
It doesnt work.Probably because of the cellvaluepresenterstyle applied to the field with fixed hieght. Can you attach a sample project with the code that i have sent.