void LoadPosition() { oPostion = new DataAccess.Position(); cboPosition.Items.Clear(); cboPosition.DataSource = oPostion.getPosition("", ""); cboPosition.DisplayMember = "POSITION"; cboPosition.ValueMember = "ID"; }
public void LoadPosition() { try { oPosition = new DataAccess.Position(); dgPosition.Rows.Clear(); eVariable.DisableGridColumnSort(dgPosition); foreach (DataRow row in oPosition.getPosition("", "").Rows) { dgPosition.Rows.Add(row[0], row[1], row[2]); } } catch (Exception ex) { } }