Infragistics ver 6.1 CLR2.0
Δεν ξερω τη γίνετε παρακάτω σε web version.
εσύ τη version εχεις?
Εδώ είναι πώς το έκανα εγώ για να το τεστάρω, πριν ποστάρω.lol
protected void Page_Load(object sender, EventArgs e)
{
//Setting the ViewType of the Grid
this.UltraWebGrid1.DisplayLayout.ViewType =
Infragistics.WebUI.UltraWebGrid.ViewType.OutlookGroupBy;
//Getting the DataSet of the Master dataSource (Dummy Way)
this.AccessDataSource2.DataSourceMode = SqlDataSourceMode.DataSet;
DataView viewMaster =
this.AccessDataSource2.Select(DataSourceSelectArguments.Empty) as DataView;
DataSet dsMaster = viewMaster.Table.DataSet;
//Getting the DataSet of the Detail dataSource (Dummy Way)
DataView viewDet =
this.AccessDataSource1.Select(DataSourceSelectArguments.Empty) as DataView;
DataSet dsDet = viewDet.Table.DataSet;
//Creating the DataSet for the grid
DataSet ds = new DataSet();
ds.Tables.Add(dsMaster.Tables[0].Copy());
DataTable master = ds.Tables[0];
master.TableName = "Master";
ds.Tables.Add(dsDet.Tables[0].Copy());
DataTable Detail = ds.Tables[1];
Detail.TableName = "Detail";
//Creating the relation
DataRelation relation =
new DataRelation("Test", master.Columns["MID"], Detail.Columns["MDMASTERID"]);
ds.Relations.Add(relation);
//Add the DataSet to the Grid
this.UltraWebGrid1.DataSource = ds;
this.UltraWebGrid1.DataMember = master.TableName;
this.UltraWebGrid1.DataBind();
}
Όλα τα σχόλια περι περιεργου Approch .... true αλλα βαριόμουνα να κανω Connection
"Success is the ability to go from one failure to another with no loss of enthusiasm."
Winston Churchill
"Quality means doing it right when no one is looking."
Henry Ford