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.

Interactive create/drag/drop covered cells

Thread ID:

Created:

Updated:

Platform:

Replies:

29348 May 23,2005 04:57 PM May 23,2005 07:45 PM Windows Forms 2
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On May 23, 2005 04:57 PM

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?

Administrator [Syncfusion]
Replied On May 23, 2005 06: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);
	}
}

Administrator [Syncfusion]
Replied On May 23, 2005 07:45 PM

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

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.

;