CellType = "DropDownGrid"

When I have a cell set to this type, and click on its dropdown button so that a sub-grid is displayed: Updates to the original grid''s DataSource cause the sub-grid to dissappear. Is there any way to prevent this?

1 Reply

AD Administrator Syncfusion Team December 16, 2004 11:33 AM UTC

Here is something to try. In TableControlCurrentCellShowingDropDown, you can lock the currentcell: this.gridGroupingControl1.TableControl.CurrentCell.Lock(); Then you can handle TableControlMouseDown and unlocked it.
private void gridGroupingControl1_TableControlMouseDown(object sender, GridTableControlMouseEventArgs e)
{
	if(this.gridGroupingControl1.TableControl.CurrentCell.IsLocked)
		this.gridGroupingControl1.TableControl.CurrentCell.Unlock();
}

Loader.
Up arrow icon