Bind BindingList
Posted: Sat Feb 21, 2009 5:12 am
Hello :
how can I bind a BindingList as DataSoure To The Report ?
I tried the following :
it throws the following Exception :
Any Help ?
how can I bind a BindingList as DataSoure To The Report ?
I tried the following :
Code: Select all
BindingList class1List = new BindingList() ;
class1List.Add(new Class1(){ Id ="1" , Name ="test1" ,Type = new ClassType() { TypeName="type1"} }) ;
class1List.Add(new Class1(){ Id ="2" , Name ="test2" ,Type = new ClassType() { TypeName="type1"} }) ;
class1List.Add(new Class1(){ Id ="2" , Name ="test3" ,Type = new ClassType() { TypeName="type2"} }) ;
stiReport1.RegData("class1" , class1List );
stiReport1.Show();
stiReport1.Dictionary.Synchronize();
Code: Select all
c:\Documents and Settings\Hussam\Local Settings\Temp\ljixkzlx.0.cs(282,28) : error CS0246: The type or namespace name 'TestProject' could not be found (are you missing a using directive or an assembly reference?)