generate DataGrid at Runtime..... PROBLEM !!!!

Discussion in 'ASP .Net Datagrid Control' started by n.shah12@gmail.com, Feb 24, 2005.

  1. Guest

    Dera All

    I am generating dataGrid at runtime
    (dim dg as new datagrid)
    and so also bound column , EditCommandColumn and other...

    now i want to enable in-line edit.

    how to do it as OnEditCommand datagrid created at runtime doesnot
    offer OnEditCommand facility.

    how to write Event handler ?

    regards.
     
    , Feb 24, 2005
    #1
    1. Advertising

  2. Elton Wang Guest

    Create event handler

    AddHandler dg.EditCommand, AddressOf MethodName

    HTH

    Elton Wang


    >-----Original Message-----
    >Dera All
    >
    > I am generating dataGrid at runtime
    > (dim dg as new datagrid)
    > and so also bound column , EditCommandColumn and

    other...
    >
    > now i want to enable in-line edit.
    >
    > how to do it as OnEditCommand datagrid created at

    runtime doesnot
    >offer OnEditCommand facility.
    >
    >how to write Event handler ?
    >
    >regards.
    >
    >.
    >
     
    Elton Wang, Feb 24, 2005
    #2
    1. Advertising

  3. Alex Homer Guest

    Here's an example:
    http://www.daveandal.net/books/6744/webforms/dynamicgrid.aspx

    <> wrote in message
    news:...
    > Dera All
    >
    > I am generating dataGrid at runtime
    > (dim dg as new datagrid)
    > and so also bound column , EditCommandColumn and other...
    >
    > now i want to enable in-line edit.
    >
    > how to do it as OnEditCommand datagrid created at runtime doesnot
    > offer OnEditCommand facility.
    >
    > how to write Event handler ?
    >
    > regards.
    >
     
    Alex Homer, Feb 27, 2005
    #3
    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. Weng Tianxiang
    Replies:
    5
    Views:
    1,354
    Christophe
    Feb 16, 2006
  2. Lucia
    Replies:
    7
    Views:
    7,698
    vinny503
    Aug 19, 2011
  3. TheVooDooChild

    Generate Function Call at Runtime

    TheVooDooChild, Apr 12, 2005, in forum: Java
    Replies:
    2
    Views:
    450
    TheVooDooChild
    Apr 13, 2005
  4. Replies:
    3
    Views:
    440
    red floyd
    Apr 7, 2006
  5. Harlan Messinger
    Replies:
    2
    Views:
    2,354
    John Bell
    Mar 28, 2010
Loading...

Share This Page