combobox in gridview
-
hi i hope i can find an answer of my question soooooon i have a combobox column in gridview this combobox has display member and value member i am tring to get the value of the selected display member to set it to another column in the gridview how can i do it thnx for help
MD_NADA
-
hi i hope i can find an answer of my question soooooon i have a combobox column in gridview this combobox has display member and value member i am tring to get the value of the selected display member to set it to another column in the gridview how can i do it thnx for help
MD_NADA
Hi, You can check in the event handler "SelectedIndexChanged" private void cbxbox1_SelectedIndexChanged(object sender, System.EventArgs e) { if (cbxbox1.SelectedValue != "") { /*Set the text in second combo box or you can find the item in second combo and select it*/ cbxbox2.text = cbxbox1.SelectedValue.ToString()); } } I hope it will help. -Samir.
-
hi i hope i can find an answer of my question soooooon i have a combobox column in gridview this combobox has display member and value member i am tring to get the value of the selected display member to set it to another column in the gridview how can i do it thnx for help
MD_NADA
You will get all the information here http://www.datagridgirl.com/articles.aspx[^]
Keshav Kamat :) India
-
You will get all the information here http://www.datagridgirl.com/articles.aspx[^]
Keshav Kamat :) India
in web form u can access the value gridview1.FindControl("DropDownList1").value