I have a text field in Xamdatagrid, which can contain new line characters, how to style this field , to display the text on the same line (without any new line characters appearing).
Have tried this, but its not working.
<igDP:XamDataGrid.Resources> <Style TargetType="{x:Type igEditors:XamTextEditor}"> <Setter Property="TextWrapping" Value="Wrap"/> </Style> </igDP:XamDataGrid.Resources>Currently the text of that field (considering one example) is displaying as below:ms: 98a, bofa: 98h, citi: 99h, breanIndeed, would like the text to be displayed as :
ms : 98a, bofa : 98h, citi : 99h, brean
your sample code was helpful, it works fine. The error which i mentioned in my previous post is not related to this, and after fixing it, it started to work. Thank you.
Hello Sowmya,
Thank you for your update on this matter, but would it be possible for you to please elaborate on the behavior you are currently seeing? At the moment, I do not have access to your application, and so I am unsure of what “weird behavior” you are seeing, or how the data columns are seemingly incorrectly being displayed?
Please let me know if you have any other questions or concerns on this matter.
I defined within the Grid.Resources section, however, at runtime, the data columns are not getting displayed as before, and also notice some weird behavior
instead was able to add this within <UserControl.Resources> section, and it got compiled, am gonna test it out now.
<UserControl.Resources> <converter:NewLineSameLineConverter x:Key="conv" /> </UserControl.Resources>
I was trying to do the same thing, but encountering this error,
<igDP:XamDataGrid.Resources>
<converter:NewLineSameLineConverter x:Key="conv" /> </igDP:XamDataGrid.Resources>
where the namespace is defined as
xmlns:converter="clr-namespace:NextGen.Modules.Converters"
However getting this error,
Severity Code Description Project File Line Suppression StateError The name "NewLineSameLineConverter" does not exist in the namespace "clr-namespace:SparxNextGen.Modules.Converters"
in spite of it existing within that namespace.