Last post Aug 09, 2012 11:10 AM by neha24
Aug 09, 2012 11:10 AM|neha24|LINK
Hello all i did followed all set from this web site. What i want.... I am using Active directory and database both to create Crystal Report so i want to bind my Data set to data table at run time.......
I did created one dataset and in that i did added datatable and fields too.... now in my class i did created my data table from AD and Database and i did used this code to bind that data table to my designer view's data set's data table.....
DataSet ds = new DataSet(); //New Dataset
ds = new DataSet1(); // setting as my design view's data set
DataTable dt = ds.Tables["EventTable"]; //creating new dt with design view's data table name
dt = data.Copy(); // Coping my data table DATA to dt.
ds.Tables.Add(dt); // Adding data table to dt.
but its not returning what i want....
can any one please help me .......