In my drill down crystal report (vs.net 2005) , I want to set the hide (drill- down OK ) option for the group header at run time based on the user preference.
How can do that programmatically?
Thx

VB Code:
  1. Private Sub configureCrystalreports()
  2.         MyCrystalReportViewer.Visible = False
  3.         OVBReport = New OVBRpt
  4.         Dim myds As New DataSet
  5.         myds = mcsData.OVB1(CreateQuery())
  6.         If myds.Tables(0).Rows.Count > 0 Then
  7.             lblNorecords.Visible = False
  8.             OVBReport.SetDataSource(myds)
  9.             MyCrystalReportViewer.ReportSource = OVBReport
  10.             MyCrystalReportViewer.Width = ToolStrip1.Width() - 180
  11.             MyCrystalReportViewer.Visible = True
  12.         Else
  13.             MyCrystalReportViewer.Visible = False
  14.             lblNorecords.Visible = True
  15.         End If
  16.     End Sub