AD
Administrator
Syncfusion Team
February 2, 2007 04:46 PM UTC
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
HP
Heena Patel
February 2, 2007 07:58 PM UTC
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