GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Interview Questions  >  Microsoft  >  ADO.NET 2.0

 Print  |  
Question:  How can we retrieve the value which was selected from a combo box in a datagrid view.

Answer: The grid view consists of 3 columns which are combo Boxes. I want the string in the 1st column.


August 08, 2008 02:45:58 #3
 veluworld   Member Since: July 2007    Total Comments: 2 

RE: How can we retrieve the value which was selected from a combo box in a datagrid view.
 
((DropDownList)GV_chart.Rows[e.RowIndex].FindControl("Dcity1"));

Here GV_Chart is the id of Grid View And DCity is the Name of the dropdown list
     

 

Back To Question