Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - Unable to check RRI checkbox
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Unable to check RRI checkbox

 Post Reply Post Reply
Author
Message
Shawshank View Drop Down
Senior Member
Senior Member


Joined: 16 October 2005
Status: Offline
Points: 117
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shawshank Quote  Post ReplyReply Direct Link To This Post Topic: Unable to check RRI checkbox
    Posted: 27 February 2006 at 3:56pm

I need to have two columns editable, i.e. single click the ReportRecordItem (RRI) from the porper column and it becomes ediable. I have acomplished that by setting the ReportControl's AllowEdit property to True. I then set each column which I do not want editable to False, i.e. Column.Editable = False. The problem is that any ReportRecordItem whose column Editable property is False and which has a checkbox is unable to have that box checked. I can only do it programically, i.e. the user cannot click the checkbox and have it become checked.

Given the senario above it seems I must choose between haveing two editable columns or having a checkbox that works --but not both.

Can someone please shed some light on what I'm missing here?

Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2006 at 3:43am
Hi,

It looks like this is almost the same question like your one: http://forum.codejock.com/forum_posts.asp?TID=3710

With the code I suggested in that topic I can both disable editing name for Alias and Surname columns and checkbox could be clickable as well. Here is the code I'm using:

Private Sub Form_Load()
    Dim Record As ReportRecord
    Dim Item As ReportRecordItem
    Dim Column As ReportColumn
       
    Set Column = wndReportControl.Columns.Add(0, "Alias", 1, True)
    Column.EditOptions.AllowEdit = False
       
    Set Column = wndReportControl.Columns.Add(1, "Name", 1, True)
    'Column.EditOptions.AllowEdit = True
       
    Set Column = wndReportControl.Columns.Add(2, "Surname", 1, True)
    Column.EditOptions.AllowEdit = False
   
    Set Record = wndReportControl.Records.Add()
       
    Set Item = Record.AddItem("Fred Garvin")
    Item.HasCheckbox = True
       
    Set Item = Record.AddItem("Fred")
   
        Item.CreateEditOptions
        Item.EditOptions.AllowEdit = True
        Item.EditOptions.SelectTextOnEdit = True
   
    Set Item = Record.AddItem("Garvin")
    Item.HasCheckbox = True
   
    wndReportControl.AllowEdit = True
    wndReportControl.Populate
End Sub


--
WBR,
Serge
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.155 seconds.