Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Editable datagrid with dynamic table data

Reply
Thread Tools

Editable datagrid with dynamic table data

 
 
stut
Guest
Posts: n/a
 
      12-20-2005
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DataGrid EditItemCommand : must click twice to make DataGrid Editable Diane ASP .Net Datagrid Control 5 11-09-2005 09:54 AM
Dynamic Listbox control in editable datagrid JMann101 ASP .Net 1 06-23-2005 10:13 PM
dynamic drop downlists in an editable dynamic datagrid. mkhans@gmail.com ASP .Net Datagrid Control 0 06-22-2005 09:01 PM
Editable datagrid and dynamic validation controls Drew ASP .Net Datagrid Control 0 05-17-2005 12:26 PM
Fully multiple, editable dynamic datagrid. Viren ASP .Net Datagrid Control 1 10-20-2003 06:53 PM



Advertisments