protected void BindGrid() { var list = db.S_Urunler().Where(c => c.KategoriID_TipID4 == 16).ToList(); if (list.Count > 0) { ASPxDataView1.DataSource = list; ASPxDataView1.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { DataTable t = new DataTable(); t.Columns.Add("name"); t.Columns.Add("value", typeof(System.Int32)); t.Rows.Add("Circular", 12); t.Rows.Add("Digital", 10); ASPxDataView1.DataSource = t; ASPxDataView1.DataBind(); }
protected void GetServers() { try { DataTable dt = VSWebBL.DashboardBL.DashboardBL.Ins.GetServerType(""); ASPxDataView1.DataSource = dt; ASPxDataView1.DataBind(); } catch (Exception) { throw; } }
protected void ASPxDataView1_DataBound(object sender, EventArgs e) { if (ASPxDataView1.Items.Count > 0) { DataTable dt = VSWebBL.DashboardBL.DashboardBL.Ins.GetServerType(""); for (int i = 0; i < ASPxDataView1.Items.Count; i++) { // ASPxLabel lbl = (ASPxLabel)ASPxDataView1.FindItemControl("ASPxLabel1", ASPxDataView1.Items[i]); ASPxGridView grid = (ASPxGridView)ASPxDataView1.FindItemControl("ASPxGridView1", ASPxDataView1.Items[i]); grid.DataSource = VSWebBL.DashboardBL.DashboardBL.Ins.GetStatusGrid(dt.Rows[i]["Type"].ToString()); grid.DataBind(); } } }
protected void Page_Load(object sender, EventArgs e) { ASPxDataView1.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { ASPxDataView1.ItemTemplate = new MyItemTemplate(); ASPxDataView1.DataSource = AccessDataSource1; ASPxDataView1.DataBind(); }
protected void ASPxDataView1_Init(object sender, EventArgs e) { ASPxDataView1.DataSource = ShoppingCartStorage.AllProducts; ASPxDataView1.DataBind(); }