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.

Model.ColHiddenEntries not getting updated

Thread ID:

Created:

Updated:

Platform:

Replies:

62326 Jun 13,2007 03:31 AM Jun 15,2007 01:44 PM Windows Forms 5
loading
Tags: GridControl
Anika kapoor
Asked On June 13, 2007 03:31 AM

Hi

When I remove a databound grid column at design time, the index in the Model.ColHiddenEntries is not getting updated so when i try to traverse GridColHidden through the Model.ColHiddenEntries I get an exception. Could you please help me out with this.

Regards,
Anika

haneefm [Syncfusion]
Replied On June 13, 2007 04:23 PM

Hi Anika,

Try using the Binder.InternalColumns property to loop through all coumns in a grid and let me know if this helps.

Best regards,
Haneef

Anika kapoor
Replied On June 13, 2007 10:18 PM

Hi Haneef,

I am still getting the Index out of range error since the ColHiddenEntries is not getting updated.

Thanks
Anika

haneefm [Syncfusion]
Replied On June 14, 2007 11:43 AM

Hi Anika,

Thank you for your update.

I am not sure of what be might be causing this strange behavior without a working sample. Is it possible for you to upload us a minimal sample to reproduce the issue here? This will help us to analyse the issue further.

Best regards,
Haneef

Anika kapoor
Replied On June 14, 2007 09:15 PM

Hi Haneef,

I have fixed it by manually clearing the ColHiddenEntries and re-entering the updated index for the hidden columns.

But i am another fix, I have filter wired to the grid so when I dynamically add columns i unwire it and rewire it after addition of new column, butthe filters are not getting wired to the new column added can you suggest some solution for this.

Regards,
Anika

haneefm [Syncfusion]
Replied On June 15, 2007 01:44 PM

Hi Anika,

You need to unwire the filterbar from the grid when you modify the datasource and wire(or reassign) it again after the datasource for the grid is modified. Here is an attached sample seems to work fine by unwiring the grid and rewiring it again without any issues. Could you please give more details on this issue to make this much clearer?

Sample : Grid_Filterbar.zip

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.

;