Editable datagrid with dynamic table data

Discussion in 'ASP .Net Datagrid Control' started by stut, Dec 20, 2005.

  1. stut

    stut Guest

    Not so easy!!! I have learned that I can't have an editable datagrid
    using AutoGenerateColumns=true. OF COURSE NOT!! That would be too easy.
    So how the heck do I do it?

    I have a simple Web Form that dynamically populates a listbox with some
    Oracle database table names ("select table_name from tabs" FYI). I then
    have my datagrid dynamically show the data from ANY of the tables
    listed ONCHANGE of the listbox. I just set AutoGenerateColumns=true on
    the DataGrid, ExecuteReader, then Bind. Finally I wire-up the event
    handlers for Edit, Update, Delete and VIOLA......an UN-editable grid.
    Perfect - time to go home right? WRONG! That's why they pay us the big
    bucks (??). I actually have to do some coding.

    However, I can't find one useful article on how do use Template columns
    and EditItemTemplates and ItemTemplates. Any help greatly appreciated.
    Thanks.
    stut, Dec 20, 2005
    #1
    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. JMann101
    Replies:
    1
    Views:
    859
    JMann101
    Jun 23, 2005
  2. Viren

    Fully multiple, editable dynamic datagrid.

    Viren, Oct 20, 2003, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    136
    Alvin Bruney
    Oct 20, 2003
  3. Drew

    Editable datagrid and dynamic validation controls

    Drew, May 17, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    136
  4. Replies:
    0
    Views:
    194
  5. Diane
    Replies:
    5
    Views:
    258
    alvinz_c
    Nov 9, 2005
Loading...

Share This Page