how to show selected value on datagridview to listbox
Listobx
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Jun 11, 2015, 10:13 PM EDT
string selectedValue = "";
for (int i = 0; i < lstItem.Items.Count; i++)
{
}
selectedValue = selectedValue.TrimEnd(',').TrimStart(',');
// Here Bind Your Grid and your query like following way
/// Select * from tableName where id in(selectedValue)