void loadRak() { try { String sql = "select * from rak order by id_rak asc"; DBClass db = new DBClass(); DataTable dt = new DataTable(); dt = db.read(sql); cb_filter_1.DataSource = new BindingSource(dt, null); cb_filter_1.DisplayMember = "rak"; //kolom harus sesuai dengan tabel cb_filter_1.ValueMember = "id_rak"; cb_filter_2.DataSource = new BindingSource(dt, null); cb_filter_2.DisplayMember = "rak"; //kolom harus sesuai dengan tabel cb_filter_2.ValueMember = "id_rak"; } catch (Exception ex) { Console.WriteLine(ex.Message); } }