fillOffence(combobox1);//It fills the offence names Add Button //// string query = select [O_ID],[O_Desc] from tblOffence where O_Name'" +combobox1.Text.ToString() +"'; DataTable dt = DataManager.GetDataText(query); foreach (DataRow dataRow in dt.Rows) { lstDesc.Items.Add(dt.Rows[0][1]); Global.Offence_id = Global.Offence_id + dt.Rows[0][1].ToString() + ; error-->> combobox1.Items.Remove(combobox1.SelectedItem); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)