Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. DataView dvDetails = new DataView(_dtDetails); // _dtDetails is a datatable
  2. rptSubHistory rptSubHistory = new rptSubHistory(dvDetails);
  3. rptSubHistory.DataSource = dvDetails;
  4. subHistory.Report = rptSubHistory;
  5.  
  6. public void rptSubHistory_FetchData(object sender, GrapeCity.ActiveReports.SectionReport.FetchEventArgs eArgs)
  7. {
  8. _intRecordCount++;
  9. }
  10.  
  11. public void Detail_Format(object sender, System.EventArgs eArgs)
  12. {
  13. if (_dvDetails.Count > 0)
  14. {
  15. txtColumn.Text = _dvDetails.Table.Rows[_intRecordCount]["ColumnName"].ToString();
  16. txtOrigValue.Text = _dvDetails.Table.Rows[_intRecordCount]["OrigValue"].ToString();
  17. txtNewValue.Text = _dvDetails.Table.Rows[_intRecordCount]["CurrentValue"].ToString();
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement