or
public class Offer{ public Guid Id { get; set; } public string OfferNo { get; set; } public Customer Client { get; set; } public DateTime? DateFrom { get; set; } public DateTime? DateTo { get; set; }}public class Customer{ public Guid CustomerId { get; set; } public string Name { get; set; } public string ShortName { get; set; }}public Form1(){ InitializeComponent(); custs = GridData.GetCustomers(5); IList offers = GridData.GetGridData(custs); radGridView1.DataSource = offers; SetColumns();}private void SetColumns(){ radGridView1.Columns.Clear(); GridViewDataColumn column = null; for (int i = 0; i < 4; i++) { switch (i) { case 0: column = new GridViewTextBoxColumn("Offer no"); break; case 2: column = new GridViewDateTimeColumn("Date from"); break; case 3: column = new GridViewDateTimeColumn("Date to"); break; case 1: column = new GridViewMultiComboBoxColumn("Client"); ((GridViewMultiComboBoxColumn)column).FieldName = "Client"; ((GridViewMultiComboBoxColumn)column).DataSource = custs; ((GridViewMultiComboBoxColumn)column).DisplayMember = "Name"; ((GridViewMultiComboBoxColumn)column).ValueMember = "CustomerId"; break; } column.Width = 150; column.IsVisible = true; column.ReadOnly = false; radGridView1.Columns.Add(column); }}Hello,
When I create a new report in new project. It shows error as below:
"Could not find type 'Telerik.Reporting.Report'. Please make sure that the assembly that contains this type is referenced. If this type is a part of your development project, make sure that the project has been successfully built using settings for your current platform or Any CPU. "
|
