Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. public partial class _WellPlateReport : Telerik.Reporting.Report
  2. {
  3. public _WellPlateReport(Dictionary<string, object> ReportParameters)
  4. {
  5. //
  6. // Required for telerik Reporting designer support
  7. //
  8. InitializeComponent();
  9. tbGenotype.Visible = false;
  10. //
  11. // TODO: Add any constructor code after InitializeComponent call
  12. //
  13. }
  14.  
  15. private void labelsGroupHeaderSection_ItemDataBinding(object sender, EventArgs e)
  16. {
  17. string temp = "";
  18.  
  19. Telerik.Reporting.Processing.GroupSection headerGroup = (Telerik.Reporting.Processing.GroupSection)sender;
  20.  
  21. Telerik.Reporting.TextBox tb = new Telerik.Reporting.TextBox();
  22. tb.Left = new Telerik.Reporting.Drawing.Unit(0.5, UnitType.Inch) + tbGenotype.Left + tbGenotype.Width;
  23. //tb.Width = new Telerik.Reporting.Drawing.Unit(3.0, UnitType.Inch);
  24. tb.Size = tbSex.Size;
  25. tb.Name = "TestLabel1";
  26. tb.Value = "Test Label";
  27. tb.Location = new Telerik.Reporting.Drawing.PointU(tbGenotype.Left + tbGenotype.Width + new Telerik.Reporting.Drawing.Unit(0.5, UnitType.Inch), Telerik.Reporting.Drawing.Unit.Inch(0D));
  28.  
  29. //this.labelsGroupHeaderSection.Items.Add(tb);
  30. //this.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { tb });
  31.  
  32. this.labelsGroupHeaderSection.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { tb });
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement