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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Need to catch an Delegate object...

Thread ID:





46200 Jul 7,2006 05:53 PM UTC Jul 8,2006 04:12 PM UTC WinForms 2
Tags: GridControl
Sathish Chandran
Asked On July 7, 2006 05:53 PM UTC

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.


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

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 04:12 PM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon