Ejemplo n.º 1
0
 private void BindTypes()
 {
     IStock.BLL.ClientTypes Types = new IStock.BLL.ClientTypes();
     Types.LoadAll();
     Types.Sort = "Name";
     uiGridViewTypes.DataSource = Types.DefaultView;
     uiGridViewTypes.DataBind();
 }
Ejemplo n.º 2
0
 private void LoadClientTypes()
 {
     IStock.BLL.ClientTypes types = new IStock.BLL.ClientTypes();
     types.LoadAll();
     uiDropDownListClientTypes.DataSource = types.DefaultView;
     uiDropDownListClientTypes.DataTextField = "Name";
     uiDropDownListClientTypes.DataValueField = "ClientTypeID";
     uiDropDownListClientTypes.DataBind();
     uiDropDownListClientTypes.Items.Insert(0, new ListItem("إختر عميل", ""));
 }