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 7536271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:31:42+00:00 2026-05-30T06:31:42+00:00

I Have a and ASP.NET GridView which is set so <asp:GridView ID=GridView1 runat=server AutoGenerateColumns=False

  • 0

I Have a and ASP.NET GridView which is set so

<asp:GridView ID="GridView1" runat="server" 
            AutoGenerateColumns="False" 
            CellPadding="4" 
            DataKeyNames="Pric_PricingID" 
            DataSourceID="CRMDataSource1" 
            EnableModelValidation="True" 
            GridLines="None" 
            AllowPaging="True" 
            AllowSorting="True" 
            Width="100%" 
            CssClass="GRIDHEAD" 
            onselectedindexchanged="GridView1_SelectedIndexChanged">

One of the fields I need to be a drop down value when the row is edited the user will select a value and click update this will then set the column value of price_c_alfsupreq to the select value I believe that this is done using a post back? I am new to this so any help would be fantastic.

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-30T06:31:43+00:00Added an answer on May 30, 2026 at 6:31 am

    You can try to add a commandfield in your gridview. This will set a “Edit”-button. When this button is clicked, you will get the EditItemTemplates which you see below.

    <asp:CommandField ShowEditButton="True" CancelText="Cancel" EditText="Edit"
            UpdateText="Save">
        </asp:CommandField>
    

    And then add a templatefield with a editTemplate inside – here the dropdownlist is enabled, so you can chose from it.

    <asp:TemplateField HeaderText="Dropdown">
            <ItemTemplate>
                <asp:Dropdownlist ID="ddl1" runat="server" 
                    Enabled="false" />
            </ItemTemplate>
            <EditItemTemplate>
                <asp:Dropdownlist ID="ddl1Edit" runat="server"
                    Enabled="true" />
            </EditItemTemplate>
        </asp:TemplateField>
    

    and in your datasource add a UpdateCommand, which evaluates the value in the ddl1Edit.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET GridView which is populated from a SQL Server database. This
I have an ASP.NET GridView which has columns that look like this: | Foo
I have an ASP.NET(2.0 using C#) web app, in which I have a gridview.
I am using C#,ASP.NET I have a Gridview for which I have provided Sorting,
So I have an ASP.NET page with two controls: a GridView which displays rows
I have a GridView in ASP.net which is filled from an SqlDataSource. one of
I have an ASP.NET GridView that's bound to an ObjectDataSource (which is bound to
OK, so this is bugging me. I have a gridview in ASP.net which I've
I have a GridView on ASP.NET web form which I have bound to a
In ASP.NET 4, I have a GridView, which contains a DropDownList in the asp:TemplateEdit

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.