Hi,
I created crystal report and through Data-->object i generated the DataSource and i added the fields from generated Datasource. My problem is, how to assign the values to the datasource.
Is anything like grid.DataSource = MyCustomClass is available. I can't access the Database directly [its a remove service]. What is the way to assign the values.
I want some thing like
class CustomClass
{
string name;
string number;
public string Name
{
set
{
return name;
}
}
public string Number
{
set
{
return number;
}
}
}
CustomClass custom = new CustomClass ();
custom.Name = "Mohan";
custom.Number = "100";
reportViewer.DataSource = custom ;
Is it anything similar to this is available.