![]()  | 
 
SOLVED: Editable check boxes | 
 
    Post Reply  
   | 
  
| Author | |
   
   markmark  
   
   Senior Member  
   Joined: 30 November 2007 Status: Offline Points: 142  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Topic: SOLVED: Editable check boxesPosted: 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    | 
 |
![]()  | 
 |
   
   Aaron  
   
   Senior Member  
   Joined: 29 January 2008 Status: Offline Points: 2192  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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....  | 
 |
![]()  | 
 |
   
   Aaron  
   
   Senior Member  
   Joined: 29 January 2008 Status: Offline Points: 2192  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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....  | 
 |
![]()  | 
 |
   
   Aaron  
   
   Senior Member  
   Joined: 29 January 2008 Status: Offline Points: 2192  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     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....  | 
 |
![]()  | 
 |
   
   markmark  
   
   Senior Member  
   Joined: 30 November 2007 Status: Offline Points: 142  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 07 July 2008 at 2:57am | 
 
| 
   
    Aaron.   Thanks you very much.   XtremeRecordItem.CreateEditOptions   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  | 
 |
![]()  | 
 |
   
   Aaron  
   
   Senior Member  
   Joined: 29 January 2008 Status: Offline Points: 2192  | 
  
   
      Post Options
    
        Thanks(0)
      Quote   Reply
   
     Posted: 07 July 2008 at 3:21am | 
 
   
   
 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....  | 
 |
![]()  | 
 |
    Post Reply  
   | 
  |
|       
  
  Tweet   	
    | 
 
| Forum Jump | Forum Permissions  ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum  |