Print Page | Close Window

Add Check Box in Data Bind Mode

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=17181
Printed Date: 15 November 2024 at 1:43pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add Check Box in Data Bind Mode
Posted By: SHAN
Subject: Add Check Box in Data Bind Mode
Date Posted: 01 September 2010 at 6:49am
Hi,
 
  Please help me how to add check box to a column in Recordset Data bind mode.?
 
 I have a column in the oracle database having values 0 for false and 1 for true.
 
 Thanks in Advance..!
 
 
 
 
 
 
 


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows 7 Professional
Language: Visual Basic 6.0



Replies:
Posted By: SHAN
Date Posted: 12 September 2010 at 6:25am
I tried and got an idea how to do this....! It works....!
 
 
ReportControl1.SetCustomDraw xtpCustomBeforeDrawRow
 
 
Private Sub ReportControl1_BeforeDrawRow(ByVal Row As XtremeReportControl.IReportRow, ByVal Item As XtremeReportControl.IReportRecordItem, ByVal Metrics As XtremeReportControl.IReportRecordItemMetrics)
If Not Row.GroupRow Then
   'Column 20  I need check box
   Row.record.Item(20).HasCheckbox = True
          If Row.record.Item(20).Value = 1 Then
             Row.record.Item(20).Checked = True
          Else
            Row.record.Item(20).Checked = False
          End If
End If
End Sub


-------------
Product: Xtreme SuitePro (ActiveX) version 15.0.2
Platform: Windows 7 Professional
Language: Visual Basic 6.0



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