how to show selected value on datagridview to listbox
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Upendra Pratap ShahiPosted Jun 12, 2015, 2:13 AM
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)