We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Multiline at gridDataBoundGrid

Thread ID:





92465 Jan 16,2010 08:24 AM UTC Jan 20,2010 05:15 AM UTC ASP.NET Web Forms (Classic) 1
Tags: GridGroupingControl
Hyung-Jin Lee
Asked On January 16, 2010 08:24 AM UTC

I want to know for a gridDataBoundGrid.

1. Is there any way to use multiline at a GDBG?

2. if I type 'Enter', cuser move to another cell.
Is there any way to not it to move?
(Ex. If you type Alt+Enter at excel sheet,
cuser is not move to another cell)

3. I found the link, but many link is not work.


Were they gone ???

Ranjeet Kumar [Syncfusion]
Replied On January 20, 2010 05:15 AM UTC

Hi Chin,

Thanks for your interest in Syncfusion Products.

Q1. Is there any way to use multiline at a GDBG?
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 )

Please find the sample attached from link mentioned below :




This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon