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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Alignment of a virtural grid

Thread ID:





4925 Jun 9,2003 01:56 PM UTC Jun 10,2003 02:02 PM UTC WinForms 2
Tags: GridControl
Martin Squicciarini
Asked On June 9, 2003 01:56 PM UTC

I want to format a numeric column in a virtual grid. Grid is declared as m_Grid As Syncfusion.Windows.Forms.Grid.GridControl and the following line gives me an error when index is greater than 11 and there are 123 columns. m_Grid.ColStyles.Item(indx).HorizontalAlignment = GridHorizontalAlignment.Right

Administrator [Syncfusion]
Replied On June 9, 2003 03:59 PM UTC

After you change the row count in your data source, try calling m_grid.ResetVolatileData to see if that does not take care of this problem. (The default was set to 10, and your new row count is not being recognized probably because the 10 is cached. Calling ResetVolatileData flushes these cached values and forces the grid to reload them.)

Martin Squicciarini
Replied On June 10, 2003 02:02 PM UTC

Clay, Thanks that was right on the money. Marty


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

Live Chat Icon For mobile
Live Chat Icon