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.

GridDataBoundGrid - Next Cell Event

Thread ID:

Created:

Updated:

Platform:

Replies:

55642 Feb 1,2007 07:00 PM Feb 2,2007 02:58 PM Windows Forms 2
loading
Tags: GridControl
Heena Patel
Asked On February 1, 2007 07:00 PM

I have 2 columns in my Databoundgrid, first one is dropdownlist and second is RichText. When I select an option in the dropdownlist i want the richtextbox of the second column to popup. How I can achieve this? Please let me know.


Administrator [Syncfusion]
Replied On February 2, 2007 11:46 AM

Hi Heena,

This can be achieved by using the CurrentCellCloseDropdown in a grid and move the current cell to required cell(richtextbox cell). And also you need to call the CurrentCell.ShowDropDown method to show the drop-down window in cell. Please try the code snippet.

private void gridDataBoundGrid1_CurrentCellCloseDropDown(object sender, Syncfusion.Windows.Forms.PopupClosedEventArgs e)
{
if(e.PopupCloseType == Syncfusion.Windows.Forms.PopupCloseType.Done)
{
GridDataBoundGrid grid = sender as GridDataBoundGrid;
GridCurrentCell cc = grid.CurrentCell;
if( cc.Renderer.CurrentStyle.CellType == "ComboBox")
{
cc.EndEdit();
cc.MoveTo(cc.RowIndex,2);
cc.ShowDropDown();
}
}
}

Best regards,
Haneef

Heena Patel
Replied On February 2, 2007 02:58 PM

Thanks that worked!

>Hi Heena,

This can be achieved by using the CurrentCellCloseDropdown in a grid and move the current cell to required cell(richtextbox cell). And also you need to call the CurrentCell.ShowDropDown method to show the drop-down window in cell. Please try the code snippet.

private void gridDataBoundGrid1_CurrentCellCloseDropDown(object sender, Syncfusion.Windows.Forms.PopupClosedEventArgs e)
{
if(e.PopupCloseType == Syncfusion.Windows.Forms.PopupCloseType.Done)
{
GridDataBoundGrid grid = sender as GridDataBoundGrid;
GridCurrentCell cc = grid.CurrentCell;
if( cc.Renderer.CurrentStyle.CellType == "ComboBox")
{
cc.EndEdit();
cc.MoveTo(cc.RowIndex,2);
cc.ShowDropDown();
}
}
}

Best regards,
Haneef

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.

;