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.

Need to catch an Delegate object...

Thread ID:

Created:

Updated:

Platform:

Replies:

46200 Jul 7,2006 01:53 PM Jul 8,2006 12:12 PM Windows Forms 2
loading
Tags: GridControl
Sathish Chandran
Asked On July 7, 2006 01:53 PM

Hi, I''ve a custom control class file. From there I want to throw a delegate object and then I want to capture it. With this I''ve attached a project. In that I want to catch the delegate object in the Virtual grid and then I want to throw it to the form, which is getting fired from the custom control class file. Please help me out. Thanks & Regards, Sathish.

Delegates.zip

Administrator [Syncfusion]
Replied On July 7, 2006 03:46 PM

Hi Sathish, Try this code in form ctor/load event to catch/invoke the DropDownFormCellRenderer.FilterForm delegate. Here is a code snippet. DropDownFormCellRenderer cr = m_virtualGrid.CellRenderers["DropDownFilter"] as DropDownFormCellRenderer; cr.FilterForm +=new Delegates.DropDownFormCellRenderer.FilterFormHandler(cr_FilterForm); private void cr_FilterForm(FilterFormEventArgs filterFormArgs) { MessageBox.Show("column Type: " + filterFormArgs.ColumnTypeName +" Column No: " + filterFormArgs.CurrentColumn +"Row No: " + filterFormArgs.CurrentRow ,"Form.cs"); } Here is a modified sample. http://www.syncfusion.com/Support/user/uploads/Delegates_82825c47.zip If I did not answer your question, please explain a little more about what you want, and I’ll try again. Best Regards, Haneef

Sathish Chandran
Replied On July 8, 2006 12:12 PM

Hi Haneef, Thanks a lot, it solved my requirement. Thanks :-) Regards, Sathish.

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.

;