Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Disable rows
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Disable rows

 Post Reply Post Reply
Author
Message
GetLife31 View Drop Down
Newbie
Newbie


Joined: 20 December 2013
Status: Offline
Points: 4
Post Options Post Options   Thanks (0) Thanks(0)   Quote GetLife31 Quote  Post ReplyReply Direct Link To This Post Topic: Disable rows
    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?
Back to Top
Xander75 View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 April 2007
Status: Offline
Points: 353
Post Options Post Options   Thanks (0) Thanks(0)   Quote Xander75 Quote  Post ReplyReply Direct Link To This Post 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)
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.156 seconds.