Hi Guys,
I have used a RadGrid and trying figure out as to how do i get a reference to the controls in the edit form template.
What i want is when i click the edit button of the RadGrid then on EditCommand event or any other event get the DataKeyValue for the row whose edit is clicked and then get data from database based on that Key and populate the values inside the Edit form template with the Values returned.
If i don't use EditCommand then i can set Values like this:
Now the values in the textbox can be set through
but how do i set value based on idex to this field
As i am not able to figure out how to do this I thought of using the EditCommand event or any other event but unable to get reference to this controls to set there Values..
Hope you guys getting me.. please reply soon..
Thanx
I have used a RadGrid and trying figure out as to how do i get a reference to the controls in the edit form template.
What i want is when i click the edit button of the RadGrid then on EditCommand event or any other event get the DataKeyValue for the row whose edit is clicked and then get data from database based on that Key and populate the values inside the Edit form template with the Values returned.
If i don't use EditCommand then i can set Values like this:
Now the values in the textbox can be set through
<asp:TextBox ID="txtName" runat="server" Text="<%# Bind('Name') %>" Width="300px"></asp:TextBox> |
but how do i set value based on idex to this field
<asp:RadioButtonList ID="Rblpagetype" runat="server"> |
<asp:ListItem>Company1</asp:ListItem> |
<asp:ListItem>Company2</asp:ListItem> |
<asp:ListItem>Company3</asp:ListItem> |
</asp:RadioButtonList> |
As i am not able to figure out how to do this I thought of using the EditCommand event or any other event but unable to get reference to this controls to set there Values..
Hope you guys getting me.. please reply soon..
Thanx