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.

GridGroupingControl close form on DoubleClick

Thread ID:

Created:

Updated:

Platform:

Replies:

23860 Jan 21,2005 02:20 AM Jan 21,2005 07:12 AM Windows Forms 2
loading
Tags: Grouping
Krijn Michiels
Asked On January 21, 2005 02:20 AM

Hi, I use the gridgroupingcontrol as a datalist where use can select, sort, order records. After doubleclicking the record the app opens a new window. the events I use or: - TableControlCurrentCellActivating => show full selection line ( e.Inner.ColIndex = 0 - TableControlCellClick - TableControlCellDoubleClick

Krijn Michiels
Replied On January 21, 2005 02:25 AM

(damn message textbox) Hi, I use the gridgroupingcontrol as a datalist where use can select, sort, order records. After doubleclicking the record the app opens a new window. the events I use or: - TableControlCurrentCellActivating => show full selection line ( e.Inner.ColIndex = 0) - TableControlCellClick => grab the current displayed datarow - TableControlCellDoubleClick => open other window and close current I keep getting NullReference exception(s) when the code exits the TableControlCellDoubleClick handler. I think the refresh method is called by the control itself and doesn''t know that is doesn''t exist anymore. Any solution or work around would be great !

Administrator [Syncfusion]
Replied On January 21, 2005 07:12 AM

Hi Krijn, make sure you set e.Inner.Cancel = true. If that still gives problems close the form using a timer as follows: { System.Windows.Forms.Timer t = new System.Windows.Forms.Timer(); t.Tick += new EventHandler(t_Tick); t.Interval = 20; t.Start(); } private void t_Tick(object sender, EventArgs e) { System.Windows.Forms.Timer t = (System.Windows.Forms.Timer) sender; t.Tick -= new EventHandler(t_Tick); t.Dispose(); myform.Close(); } Stefan >(damn message textbox) > >Hi, > >I use the gridgroupingcontrol as a datalist where use can select, sort, order records. After doubleclicking the record the app opens a new window. >the events I use or: >- TableControlCurrentCellActivating >=> show full selection line ( e.Inner.ColIndex = 0) >- TableControlCellClick >=> grab the current displayed datarow >- TableControlCellDoubleClick >=> open other window and close current > >I keep getting NullReference exception(s) when the code exits the TableControlCellDoubleClick handler. I think the refresh method is called by the control itself and doesn''t know that is doesn''t exist anymore. > >Any solution or work around would be great ! >

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.

;