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. Image for the cookie policy date

Interactive create/drag/drop covered cells

Can you program the grid to allow a user to interactively select various sized covers, then drag/drop over grid to cover an arbitrary range of cells?

2 Replies

AD Administrator Syncfusion Team May 23, 2005 05:07 PM

I am not sure what you mean by drag and drop covered cells. The \Syncfusion\Essential Studio\3.2.1.0\Windows\Grid.Windows\Samples\Quick Start\GridPad\ sample has a menu item that allows you to drag a selection of cells and then use the menu item to cover them. To do that, you just add a menu item (maybe with a hot key), and then in the menu handler do something like:
private void menuItem3_Click(object sender, System.EventArgs e)
{
	if(!this.gridDataBoundGrid1.Selections.Ranges.ActiveRange.IsEmpty)
	{
		this.gridDataBoundGrid1.Model.CoveredRanges.Add(this.gridDataBoundGrid1.Selections.Ranges.ActiveRange);
	}
}


AD Administrator Syncfusion Team May 23, 2005 06:45 PM

I wanted to be able to drag and drop pre-defined range size covers. I''ll check out this example. Thank you.

Loader.
Live Chat Icon For mobile
Up arrow icon