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.
Unfortunately, activation email could not send to your email. Please try again.

Multiline at gridDataBoundGrid

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hello.
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.

http://www.syncfusion.com/support/forums/grid-windows/70402

Were they gone ???

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

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.zip

Regards,
Ranjeet.

CONFIRMATION

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.

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.

;