Hi:
We are using the UltraGrid.Text property for displaying messages to the user. When the message to be displayed is longer than the width of the grid the text is truncated. The messages can vary in length and depending on the source of the message we cannot put in line breaks. I cannot find a property that will wrap this text or that will allow me to change the height of where this text is displayed.
I have tried setting the Grid.DIsplayLayout.Override.WrapHeaderText to true and this does not work, and I do not even think this applies to the Text property. Can anyone help with this, or suggest a different way to display messages to the user within the grid.
Thanks!
Submit a feature request to Infragistics
Mike:
Thanks for your reply, sad that the caption cannot wrap. How can we request this be a added feature in future releases?
We could use a label, but we have forms with several grids that are validated at once and it is best to keep the validation error messages as close to the problem as possible, therefore, the label would be confusing to some users.
We found when using a reference file to set the message text the \n comes across to the interface as \n, not a new line. That is why we were finding out about wrapping.
You can user the new line character '\n' in for the Grid.Text, it's the only character it accepts it does not accept the '\t'.
Sample:
Grid.Text = "Hellow\nWorld";
I don't beleive the grid caption can wrap - at least not automatically. Why not use a Label outside the grid instead of the grid caption? That way you have total control over the size and the wrapping.