private void BindData() { DBLayer db = new DBLayer(); DataSet ds = new DataSet(); ds = db.GetAllClassType(); uiGridViewClassType.DataSource = ds; uiGridViewClassType.DataBind(); }
private void LoadDDLs() { DBLayer db = new DBLayer(); uiDropDownListClassType.DataSource = db.GetAllClassType(); uiDropDownListClassType.DataTextField = "ArName"; uiDropDownListClassType.DataValueField = "ClassTypeID"; uiDropDownListClassType.DataBind(); uiDropDownListClassType.SelectedIndex = 0; }