Gridview custom edit for individual row

Discussion in 'ASP .Net Web Controls' started by newcomer2k@yahoo.com, Apr 2, 2007.

  1. Guest

    Hi,
    currently, if I create a template editor, it shows the same editor for
    every row.

    I would like to have different editor for different rows on the same
    column.
    i.e. when user clicks on Edit for row one, I would like to show the
    standard EditBox, but for row two, I would like to show RichTextBox.

    How can I do this?
    Thanks for any pointer.
    Minh
     
    , Apr 2, 2007
    #1
    1. Advertising

  2. Guest

    For those who are interest...
    I found a workaround to my problem.
    Handle the PreRender event of the template textbox.
    Then change the textbox's height and mode depending on the selected
    row.
    Minh

    On Apr 2, 10:04 am, wrote:
    > Hi,
    > currently, if I create a template editor, it shows the same editor for
    > every row.
    >
    > I would like to have different editor for different rows on the same
    > column.
    > i.e. when user clicks on Edit for row one, I would like to show the
    > standard EditBox, but for row two, I would like to show RichTextBox.
    >
    > How can I do this?
    > Thanks for any pointer.
    > Minh
     
    , Apr 3, 2007
    #2
    1. Advertising

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?a2Vu?=
    Replies:
    1
    Views:
    10,394
    Wiktor Zychla [C# MVP]
    Jan 23, 2006
  2. H5N1
    Replies:
    0
    Views:
    2,770
  3. Replies:
    5
    Views:
    696
  4. D
    Replies:
    0
    Views:
    256
  5. Jaime Stuardo

    GridView control enters edit mode when I click Edit link twice

    Jaime Stuardo, Apr 7, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    453
    Jaime Stuardo
    Apr 7, 2006
Loading...

Share This Page