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.

Getting Mouse Click Notification on User Control

Thread ID:

Created:

Updated:

Platform:

Replies:

60674 May 9,2007 05:28 PM May 11,2007 10:26 AM Windows Forms 2
loading
Tags: GridControl
Tom Zehrbach
Asked On May 9, 2007 05:28 PM

I have a User Control that I place in an Essential Grid cell (cell type set to "Control"). The user control has a label control and a pushbutton. If I click on the pushbutton the cell works as expected. If I mouse click on the label, no mouse click events are raised - not in the containing Essential Grid, nor then User Control nor the Label control.

Is there a way to raise this event for any one of the three controls (Essential Grid, User Control or Label control)?

(If I place the User Control on a regular Windows Form, the mouse click event is raised as expected).

haneefm [Syncfusion]
Replied On May 9, 2007 07:39 PM

Hi Tom,

You can try handling the CellClick event of the grid and let me know if this helps.

private void gridControl1_CellClick(object sender, GridCellClickEventArgs e)
{
MessageBox.Show("Clicked");
}

Best regards,
Haneef

Tom Zehrbach
Replied On May 11, 2007 10:26 AM



>Hi Tom,

You can try handling the CellClick event of the grid and let me know if this helps.

private void gridControl1_CellClick(object sender, GridCellClickEventArgs e)
{
MessageBox.Show("Clicked");
}

Best regards,
Haneef

Sorry to waste your time, it's a Windows Label control thing. The framework is not passing along mouse click event notifications. If I replace the Label with a TextBox I get the mouse clicks.

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.

;