Hi All
I have a RadGrid as follows:
At post back, every item is in edit mode.
I also have a button on my page (trbSave). When clicked, I want to loop through each row in my RadGrid, and determine what the selected value is for my drop down columns. I am trying this so far without any luck:
i.FindControl("todcCode") always returns 'nothing'. Does anyone know how I can reference that drop downlist and get its currently selected value?
Shane
                                I have a RadGrid as follows:
<telerik:RadGrid ID="trgStudAttend" runat="server" AllowSorting="True"     AutoGenerateColumns="False" GridLines="None" Skin="Windows7"     CellSpacing="0" AllowMultiRowEdit="True">     <ClientSettings EnableRowHoverStyle="true" />     <MasterTableView DataKeyNames="atdID" EditMode="InPlace">         <Columns>             <telerik:GridBoundColumn DataField="atdID" HeaderText="ID" Visible="false"                 UniqueName="atdID">             </telerik:GridBoundColumn>             <telerik:GridBoundColumn DataField="studDisplayName" HeaderText="Name"                UniqueName="studDisplayName" ReadOnly="True">             </telerik:GridBoundColumn>             <telerik:GridDropDownColumn DataSourceID="sdsTimeOfDayCodes" HeaderText="Time of Day"                 ListTextField="comb" ListValueField="todcCode" UniqueName="todcCode" DataField="atdTimeOfDayCode">             </telerik:GridDropDownColumn>             <telerik:GridDropDownColumn DataSourceID="sdsReasonCodes" HeaderText="Reason"                 ListTextField="comb" ListValueField="rfacCode" UniqueName="rfacCode" DataField="atdReasonCode">             </telerik:GridDropDownColumn>             <telerik:GridBoundColumn DataField="atdComment" HeaderText="Comment"                UniqueName="atdComment">             </telerik:GridBoundColumn>         </Columns>     </MasterTableView> </telerik:RadGrid>At post back, every item is in edit mode.
I also have a button on my page (trbSave). When clicked, I want to loop through each row in my RadGrid, and determine what the selected value is for my drop down columns. I am trying this so far without any luck:
' Declarations Dim sqlString As String = ""Dim sqlCom As SqlCommand Dim todcDDL As RadComboBox ' Loop through each student in the radgrid, and save the selected values to the details database For Each i As GridDataItem In trgStudAttend.EditItems     todcDDL = i.FindControl("todcCode") 
Nexti.FindControl("todcCode") always returns 'nothing'. Does anyone know how I can reference that drop downlist and get its currently selected value?
Shane

