Edit Datagrid - show textbox and dropdown

Discussion in 'ASP .Net Datagrid Control' started by Anamika, Apr 15, 2004.

  1. Anamika

    Anamika Guest

    Hi All,
    I have a problem trying to edit the data in a datagrid control.
    I have 2 bound columns in the datagrid. I have added the following
    code inorder to edit the data. I want it such that certain rows of
    data when edited will bring the textbox control while certain other
    rows will bring a dropdownlist from where i can select a value.

    is it possible to do that in the SAME template column?
    Any help will be much appreciated.

    Thanks,
    Anamika

    ----
    <Columns>
    <asp:EditCommandColumn
    ButtonType="LinkButton"
    UpdateText="Update"
    CancelText="Cancel"
    EditText="Edit"
    ItemStyle-HorizontalAlign="Center"
    HeaderText="Edit">
    </asp:EditCommandColumn>
    <asp:BoundColumn DataField="Header" HeaderText="Application
    Field"></asp:BoundColumn>
    <asp:BoundColumn DataField="Value" HeaderText="Field
    Value"></asp:BoundColumn>
    </Columns>
     
    Anamika, Apr 15, 2004
    #1
    1. Advertisements

  2. Anamika

    Anamika Guest

    Hi Scott,
    Thanks for the response. I went through your site before posting here.
    I'll try toggling the controls during runtime like you suggested.

    Thanks,
    Anamika
     
    Anamika, Apr 20, 2004
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?TmV3VG9Eb3ROZXQ=?=

    TextBox and DropDownList in Datagrid Edit mode

    =?Utf-8?B?TmV3VG9Eb3ROZXQ=?=, Jan 30, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    937
    =?Utf-8?B?TmV3VG9Eb3ROZXQ=?=
    Feb 9, 2004
  2. Schultz
    Replies:
    3
    Views:
    787
    =?Utf-8?B?QmlsbCBCb3Jn?=
    Feb 14, 2005
  3. =?Utf-8?B?a2Vu?=
    Replies:
    1
    Views:
    10,706
    Wiktor Zychla [C# MVP]
    Jan 23, 2006
  4. vishnu
    Replies:
    1
    Views:
    1,451
    Patrick.O.Ige
    Mar 25, 2006
  5. Andreas Klemt
    Replies:
    0
    Views:
    524
    Andreas Klemt
    Oct 8, 2003
  6. Steve Myers
    Replies:
    2
    Views:
    491
    Steve Myers
    Nov 20, 2003
  7. TextBox and DropDown in a Datagrid ItemTemplate

    , Nov 12, 2004, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    224
    Mudasir Ahmed
    Nov 12, 2004
  8. Sharon McCarty
    Replies:
    0
    Views:
    424
    Sharon McCarty
    Nov 24, 2004
Loading...