Hi,
i just want to bind a dataset which having the relation..here am giving my code,i am using infra2009.3,but i did' nt get the result
GlobalDs.Relations.Add(
"CSV_SKU", GlobalDs.Tables["csvData"].Columns["SrNo"], GlobalDs.Tables["skuno"].Columns["SrNo"]);
this.UltraWebGrid1.DataSource = GlobalDs;
this.UltraWebGrid1.DataBind();
Regards
Naag
I think you need to create the relation first, like this:
DataRelation relation = new DataRelation("SrNoRelation", dataset.Tables["csvData"].Columns["SrNo"], dataset.Tables["skuno"].Columns["SrNo"]); GlobalDs.Relations.Add(relation); UltraWebGrid1.DataSource = GlobalDs;UltraWebGrid1.DataBind();
new
"SrNoRelation"
"csvData"
"SrNo"
"skuno"