Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6658907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:58:06+00:00 2026-05-26T01:58:06+00:00

I have a RadGrid control and I’m defining the Edit Form for it. I

  • 0

I have a RadGrid control and I’m defining the Edit Form for it.

I have added a text box to bind data to as below which works fine:

<asp:TextBox ID="tbAuthenticationMode" runat="server" Text='<%# Bind("AuthenticationMode") %>' CssClass="tbAuthenticationMode">
                                    </asp:TextBox>

Now, I’d like to remove this text box and replace it with a simple drop down list as below:

 <asp:DropDownList ID="ddlAuthenticationMode" runat="server">
                                    <asp:ListItem Text="Windows Authentication" Value="Windows"></asp:ListItem>
                                    <asp:ListItem Text="SQL Server Authentication" Value="SqlServer"></asp:ListItem>
                                    </asp:DropDownList>

What I’d like to happen is that the “AuthenticatioMode” value to be bound to this drop down list.

How would it be possible?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:58:06+00:00Added an answer on May 26, 2026 at 1:58 am

    You must first override the RadGrid’s ItemCreated event. Then check if the event’s item editable and en edit mode. Then you can bind data to it. Here’s a code sample:

    protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e)
    {
       if (e.Item is GridEditableItem && e.Item.IsInEditMode)
       {
          GridEditFormItem geiEditedItem = e.Item as GridEditFormItem;
          geiEditedItem.Visible = true;
    
          //Edit mode
          if (e.Item.DataItem is YourClass)
          {
             YourClass currentItem = (YourClass)e.Item.DataItem;
    
             DropDownList ddlAuthenticationMode= geiEditedItem.FindControl("ddlAuthenticationMode") as DropDownList;
             ddlAuthenticationMode.SelectedValue = currentItem.AuthenticatioMode.ToString();
          }
       }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a RadGrid control with template edit form implementation. I need to have
I have a RadGrid with a custom edit form ( FormTemplate ). The grid
I have created a RadGrid control dynamically on Page_PreInit event and added it to
I have radGrid in .ascx page in which I want to find the control
I have Telerik RadGrid with a custom edit form. In my edit form there
I have added a RadControl, RadGrid and I need to add a radComboBox in
I have a telerik radgrid-control on my page for showing a list of articles.
I have added the Shadowbox on my page and it works fine when I
I have a RadGrid bound to a LinqDataSource. The grid has auto generated Edit
I have a RadGrid which is DataBound to a IDictionary<string,string> where there are 2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.