Generate a datatable based on user defined types and the parameter should be stored procedure.According to the stored procedure we have to create datatable dynamically.
for ex:-
create DataTable(parameters)
{
}
output will be like this:
Datatable dt=new Datatable();
dt.Columns.Add("Colname",typeof(datatype)) ;
dt.Columns.Add("Colname",typeof(datatype)) ;//According to the col name
dt.Rows.Add(value,value);