Hi Chin,
Thanks for your interest in Syncfusion Products.
Q1. Is there any way to use multiline at a GDBG?
Sol.
Yes, GridDataBoundGrid does support multiline. To achieve the same you may handle QueryCellInfo event which gets fired when model queries for the style information for the specific cell.
Also use ResizeToFit method to ensure all the text entered into a cell is visible.
Q2. Is there any way to not it to move?
Sol. In order to prevent enter key movement to next cell you may set EnterKeyBehavior to none.
Please see the sample attached for its implementation.
// Event : Form1_Load
this.gridDataBoundGrid1.Model.RowHeights.ResizeToFit(range, GridResizeToFitOptions.NoShrinkSize);
gridDataBoundGrid1.Model.Options.EnterKeyBehavior = GridDirectionType.None;
// Event :
this.gridDataBoundGrid1.Model.QueryCellInfo+=new Syncfusion.Windows.Forms.Grid.GridQueryCellInfoEventHandler(Model_QueryCellInfo);
// Handler :
if(e.ColIndex==3 && e.RowIndex>0 )
{
e.Style.AllowEnter=true;
e.Style.WrapText=true;
e.Style.AutoSize=true;
}
Please find the sample attached from link mentioned below :
http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=92465(Multiline_GDBG)-1791131474.zipRegards,
Ranjeet.