How to Bind the Data to DropDownListBox In GridViewControl
-
Hi, This is from Chandrakanth. I am using GridVeiw Control and in that I have one DropDownList. My problem is i would like to Bind the Data to that DropDownListbox in that GridView Control. How can i bind the data to that DropDownList Box In that GridView Control. Can any one give me reply for this. Thanks in Advance With Regards Chandrakanth
Chandrakanth
-
Hi, This is from Chandrakanth. I am using GridVeiw Control and in that I have one DropDownList. My problem is i would like to Bind the Data to that DropDownListbox in that GridView Control. How can i bind the data to that DropDownList Box In that GridView Control. Can any one give me reply for this. Thanks in Advance With Regards Chandrakanth
Chandrakanth
Find out dropDownlist control from gridview and bind it ie. on RowDataBound Event
((DropDownList)e.Row.Cell[CellNo].FindControl("ControlId")).DataSource=DataSet; ((DropDownList)e.Row.Cell[CellNo].FindControl("ControlId")).DataBind();
Best Regard Pathan---------------------------------------------------