public void Close()
 {
     if (m_dataReader != null)
     {
         m_dataReader.Close();
         m_dataReader = null;
     }
     m_row = null;
 }
 public void ResetContext()
 {
     if (m_dataReader == null)
     {
         CreateDataReader();
     }
     else if (!m_dataReader.MoveToFirstRow())
     {
         Global.Tracer.Trace(TraceLevel.Verbose, "OnDemandReportRendering.DataSetInstance triggered a second query execution or second chunk open for dataset: {0} in report {1}", m_dataSetDef.Name.MarkAsPrivate(), m_dataSetDef.RenderingContext.OdpContext.ReportContext.ItemPathAsString.MarkAsPrivate());
         Close();
         CreateDataReader();
     }
     m_row = null;
 }