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.

RepeaterUserControl child controls not displayed (sometimes)

Thread ID:

Created:

Updated:

Platform:

Replies:

44060 May 11,2006 09:01 PM May 15,2006 12:30 AM Windows Forms 3
loading
Tags: GridControl
Stephen New
Asked On May 11, 2006 09:01 PM

Hi, I am experiencing a problem with a control that I have created based on the RepeaterUserControl in the Syncfusion samples. I am wondering if anybody else has experience a similar problem. Sometimes, when the application user clicks on a cell in the grid, and that cell becomes active cell, some of the UI controls in the cell become non-visible. For example, I have a (Windows Forms) TextBox control that is a child of a (Windows Forms) panel control that is a control of the CellUserControl that I have created. When the user clicks on a cell, this text box becomes non-visible and the user cannot enter values into it. I have seen the same thing with a (Windows Forms) DateTimePicker control also. This problem only occurs intermittently - on average, once a day for my users. But when it starts happening, it will not stop happening until the user restarts the application. Has anyone else seen this? Anybody got any why it might be happening? Cheers, Stephen New.

Administrator [Syncfusion]
Replied On May 12, 2006 12:39 AM

Hi Stephen , I could see this issue. It happened to me when I opened it for the 4th time. It seems that the form''s components didn''t get disposed properly. You can call the grids Dispose method explicitly in the Form''s Dispose method.Here is a code snippet. protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); this.gridRepeaterUserControl1.Grid.Dispose(); this.gridRepeaterUserControl1.Dispose(); } } base.Dispose( disposing ); } Here is a sample. http://www.syncfusion.com/Support/user/uploads/RepeaterUserContol_5e3266d9.zip Could you please run this at your end and let me know how it goes? Best Regards, Haneef

Stephen New
Replied On May 14, 2006 07:57 PM

Thanks for your reply, Haneef. I tried your running your example and I can see that it works. If I comment-out the lines that you describe (in the Dispose() method), I can see that the grid''s cells are not painted properly. When I uncomment the lines again, the cells are painted properly. I am the same sort of change to my application. I cannot tell, yet, whether or not it is successful. The problem only appears intermittently, so it will take some time to determine whether or not this change has had the desired effect. Thanks for your time, Stephen.

Administrator [Syncfusion]
Replied On May 15, 2006 12:30 AM

Hi Stephen, Thanks for the update.I will wait to hear from you. Best Regards, Haneef

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.

;