I have a field with varchar(MAX) and I want to do two things.
Multiline editor which accepts carriage return for a new line.
I am using the following style but I still can not make a new line. I tried Enter, Control+Enter, Alt+Enter.
<Window.Resources>
<Style TargetType="igEditors:XamTextEditor" x:Key="TextboxWrapping">
<Setter Property="TextWrapping" Value="Wrap" />
<Setter Property="Height" Value="75" />
<Setter Property="VerticalScrollBarVisibility" Value="Auto" />
<Style.Resources>
<Style TargetType="{x:Type igEditors:XamTextEditor}">
<Setter Property="AcceptsReturn" Value="True"/>
</Style>
</Style.Resources>
</Window.Resources>
Code
Style cvp = (Style) Resources["TextboxWrapping"];
foreach (Field field in eventsGrid.FieldLayouts[0].Fields)
{
if (field.Name == "Description"))
field.Settings.EditorStyle = cvp;
}
Want to make custom column widht
I want to set this column width to custom-width, say 300. But I don't see any way to do this.
I only see the following two options and both are setting the column width 2x of my monitor.
field.Width = FieldLength.InitialAuto;
field.Width = FieldLength.Auto;
Thanks in Advance
Sreekanth
Hello Sreekanth,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
If the above suggestion helped you solve your issue please verify the thread as answered so other users may take better advantage of it.
Hi, above solution kind of solved the problem but created another problem. I want this editing feature on only one field. This is enabling all the fields in the grid.
To me, it works best if
1. Grid rows are set to regular row height but on double click, I want it to expand for editing.
Thank you and sorry for the late reply.