BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
HI Sören,
Thanks for using Syncfusion products.
We have analyzed your query and In GridDataControl don’t have the WantEnterKey property but if you want to suppress the enter key then you can achieve your requirement by using PreviewKeyDown event as below the code snippet.
Code snippet[C#]:
this.SyncGrid.PreviewKeyDown += new KeyEventHandler(SyncGrid_PreviewKeyDown);
void SyncGrid_PreviewKeyDown(object sender, KeyEventArgs e) { if (Key.Enter == e.Key) { e.Handled = true; } } |
Please let us know if you have any queries.
Regards,
Gobinath A.
Hi Sören,
Sorry for the delay in getting back to you.
We have analyzed your query and you can achieve your requirement by using below the code snippet for multiline option.
Code snippet[XAML]:
<syncfusion:GridDataVisibleColumn MappingName="Quantity"> <syncfusion:GridDataVisibleColumn.ColumnStyle> <syncfusion:GridDataColumnStyle AcceptsReturn="True"/> </syncfusion:GridDataVisibleColumn.ColumnStyle> </syncfusion:GridDataVisibleColumn>
|
We have prepared sample based on your requirement and please find the sample under the following location.
Sample: GridDataControl.zip
Please let us know if you have any queries.
Regards,
Gobinath A.