Click here to Skip to main content
16,004,564 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hai,


I am having a gridview.There is a column name "MetricType".In that column there is <edititemtemplate>.It having few items (ie)added manually in the drop down list control.Suppose if i want to update a particular row it is not updating in drop down list.Plz help me.

Thanks in advance
Posted
Comments
Thomas ktg 17-Dec-13 5:34am    
Show us some code you have tried.

1 solution

try this...

C#
DataGridViewComboBoxColumn column = new DataGridViewComboBoxColumn();
                   column.HeaderText = "MetricType";
                   column.Items.Add("1");
                   column.Items.Add("2");
                   //etc..
                   dgrid_surveyList.Columns.Add(column);


dgrid_surveyList is datagridview
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900