hi,
when i adding new ITEM to database,then that ITEM NAME is added in combobox at that time.After that iam selected one ITEM Name in combobox,that item information(like ITEM CODE,QUANTITY,PRICE,SIZE) is displayed in gridview.is it possible?PLZ Tell me.
Himanshu
I need codeing for get data in gridview help of combobox
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Roei BarRank #1,271 · 1.4K reputationPosted Aug 29, 2009, 8:03 AM EDT
create a SQL call to the db and bind the combo.
DataTable dt = cmd.ExecuteScalar();
cmb.DataSource = dt;
cmb.DataMember = "ItemName";
cmb.DataBind()
and do the same idea with the Grid, bind it by the Cmb.SelectedValue
hope this helps :-)
dont forget to mark this as "Accepted Answer"