Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Report Control
  New Posts New Posts RSS Feed - SOLVED: Editable check boxes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SOLVED: Editable check boxes

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


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post Topic: SOLVED: Editable check boxes
    Posted: 06 July 2008 at 10:21am

Hi

I hope someone can help.

My grid has a mixture of cells items that are Editable and not Editable.

And some items are check boxes.

 

The only way I can make a cell Editable is to set the control to

wndReportControl.AllowEdit = True

If set to

wndReportControl.AllowEdit = False

the Column.Editable = true and   Item.Editable = True are ignored altogether

 

So I set the AllowEdit = True

 

The problem is that the check box cell can now be typed into.

The cell width is wider than the check box because the caption for the column is long.

 

Is they a way to turn off the text entry for a checkbox cell?

 

Thanks

 

MArk
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 06 July 2008 at 11:00am
Hi,
 
Just set the whole column edit to false
 
 
wndReportControl.AllowEdit = True
wndReportControl.Columns(0).Editable = False
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....
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 06 July 2008 at 11:46am
Hi,
 
wndReportControl.EditOnClick = true prevents the doubleclick from start edit for reportitems with checkbox.
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....
Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 06 July 2008 at 12:01pm
Hi,
 
Adding recorditems like this will create EditOptions for a single cell:
 
 
Dim XtremeRecordItem As XtremeReportControl.ReportRecordItem
 
Set XtremeRecordItem = XtremeRecord.AddItem("Test with checkbox")
      XtremeRecordItem.HasCheckbox = True
      XtremeRecordItem.CreateEditOptions
      XtremeRecordItem.EditOptions.AllowEdit = False
 
 
Hope this will help you... If not just let me know, must be some way to make this right  
 
btw if one of the options solves your issue, please add SOLVED in your Topic description and have a look at post http://forum.codejock.com/forum_posts.asp?TID=11225  
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....
Back to Top
markmark View Drop Down
Senior Member
Senior Member


Joined: 30 November 2007
Status: Offline
Points: 142
Post Options Post Options   Thanks (0) Thanks(0)   Quote markmark Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2008 at 2:57am

Aaron.

 

Thanks you very much.

 

XtremeRecordItem.CreateEditOptions
XtremeRecordItem.EditOptions.AllowEdit = False

 

Gives the individual item to have different options than given to the entire column.

 

And that work perfectly.

 

Where as

wndReportControl.Columns(0).Editable = False

Disabled the check box completely.

 

Thanks again

 

Mark

Back to Top
Aaron View Drop Down
Senior Member
Senior Member
Avatar

Joined: 29 January 2008
Status: Offline
Points: 2192
Post Options Post Options   Thanks (0) Thanks(0)   Quote Aaron Quote  Post ReplyReply Direct Link To This Post Posted: 07 July 2008 at 3:21am
Originally posted by markmark markmark wrote:

Aaron.

Where as

wndReportControl.Columns(0).Editable = False

Disabled the check box completely.

 

Thanks again

 

Mark

 
Hi,
 
Of course it does  oeps, little mistake.
 
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....
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.