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.
Syncfusion Feedback

Grid is empty when reload the form

Thread ID:

Created:

Updated:

Platform:

Replies:

123333 Mar 8,2016 08:41 PM UTC Mar 14,2016 07:12 AM UTC Windows Forms 3
loading
Tags: GridGroupingControl
Marcel Pepin
Asked On March 8, 2016 08:41 PM UTC

Hi,

I call a windows form (named Attribution) where I enter a customer number. Then, the grid gives all needed data. Everything is working fine.
The problem is when I close that form to return to the main form (not MDI). I recall the form Attribution, I reenter the same customer number but the grid seems to be empty. It lists 57 items as supposed but I don not see datas.

I tried
gridAttribution.Table.TableDirty = true;
gridAttribution.Refresh();

But it does not work. Do I missed something?

Included print screen before ans after..

Thanks you for your help.

Attachment: GridRefresh_234f1f4a.zip

Amal Raj Umapathy Selvam [Syncfusion]
Replied On March 9, 2016 01:13 PM UTC

Hi Marcel,

Thank you for your interest in Syncfusion products.

We have developed a simple sample based on the provided information. I am afraid that I am unable to reproduce the issue. Please refer to the below attached sample which we used for testing.

Sample Link: http://www.syncfusion.com/downloads/support/forum/123333/DATAGR~12061612636.ZIP

If the problem still persists, Please send us the sample with the issue reproducible or send us the reproducing steps, so that we could find out the cause of the issue and provide a solution.

Regards,
Amal Raj U.

Marcel Pepin
Replied On March 14, 2016 02:41 AM UTC

Thanks,
I found the solution: Thoses lines was missing.

gridAttribution.SuspendLayout();
            gridAttribution.ResetTableDescriptor();
            gridAttribution.TableDescriptor.ResetRelations();
            gridAttribution.BeginUpdate();

            ...

            gridAttribution.TableDescriptor.EnableOneTimePopulate();
            gridAttribution.EndUpdate(true);
            gridAttribution.ResumeLayout();

Amresh S [Syncfusion]
Replied On March 14, 2016 07:12 AM UTC

Hi Marcel,

Thanks for the update.

We are glad you had found the solution. Please get back to us if you have any other queries.

Regards,
Amresh S.

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.

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

;