Print Page | Close Window

Disable rows

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=22140
Printed Date: 23 November 2024 at 7:16am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Disable rows
Posted By: GetLife31
Subject: Disable rows
Date Posted: 20 December 2013 at 10:11am
Hi everyone

I want to disable a single row, so that it is grey and it can't be selected. Is that possible?
I've found no property on rows or record to do this.

Can anybody tell me?



Replies:
Posted By: Xander75
Date Posted: 07 March 2014 at 3:10am
Hi,

I don't believe there is a property for this, however this can be done by simply using a hidden column to store whether it is disabled or enabled i.e. a true or false boolean.

Then using BeforeDrawRow you can have it grey out the disabled rows. As for the selection you just handle this on the MouseDown or MouseUp events. It's a workaround and to be honest is not all that hard to implement.


-------------
Product: Xtreme SuitePro (ActiveX) v15.3.1
Platform: Windows 7 64-bit (SP1) Professional Edition
Languages: C#.Net using Visual Studio 2012 & Visual Basic 6.0 (SP6)



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