protected void Page_Load(object sender, EventArgs e) { Session["inv_Id"] = 55; int invId =Convert.ToInt32( Session["inv_Id"]); DataTable dt = new DataTable(); dt=con.select_GroupCompany(invId); ASPxListBox1.ValueField = "GroupId"; ASPxListBox1.TextField = "GroupName"; ASPxListBox1.DataSource = dt; ASPxListBox1.DataBind(); int rowCount = dt.Rows.Count; ASPxListBox1.Rows = rowCount; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)