Print Page | Close Window

[SOLVED] DisableReorderColumnsCount at runtime

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Report Control
Forum Description: Topics Related to Codejock Report Control
URL: http://forum.codejock.com/forum_posts.asp?TID=11811
Printed Date: 22 November 2024 at 4:58am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: [SOLVED] DisableReorderColumnsCount at runtime
Posted By: Aaron
Subject: [SOLVED] DisableReorderColumnsCount at runtime
Date Posted: 13 August 2008 at 9:23am
Hi,
 
Why can't I set DisableReorderColumnsCount at runtime? It works with FreezeColumnsCount but it's still possible to drag the column.
 
I hope this will be fixed in next release, I really need this!
 
Thanks
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



Replies:
Posted By: SuperMario
Date Posted: 13 August 2008 at 11:20am
Use DisableReorderColumnsCount to set the count of the columns at the left side where _reordering is disabled_.


Posted By: Aaron
Date Posted: 14 August 2008 at 1:54am
Hi,
 
The reason why the DisableReorderColumnsCount can't be changed at runtime:
 
  • You have to set the value before you add columns to RC. Setting a value after adding columns won't have any result.

The ItemIndex of the column will be used to determine if the column can be reordered so all Columns with .ItemIndex less/equal to DisableReorderColumnsCount can't be reordered. Since you can't remove just one column the .ItemIndex of a column doesn't change so hiding a column (one that you didn't want to be reordered) don't affect DisableReorderColumnsCount.  

Thanks
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows XP (32bit) - SP 2
Language: Visual Basic 6.0

Zero replies is not an option....



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net