Create Datagrid Controls as runtime

Discussion in 'ASP .Net' started by Big Dave, Oct 7, 2004.

  1. Big Dave

    Big Dave Guest

    I'm driving myself nuts trying to find a good tutorial in vb.net to
    create a datagrid at runtime. I've got how to do it at design time,
    but I'd like to build a class that handles all of the coding so I
    don't have to do it every time. Does anybody know of a good tutorial
    that covers adding columns at runtime, including a column that
    displays a label from a lookup table in the bound dataset and a
    dropdown list for that columns edititemcommand.
    Big Dave, Oct 7, 2004
    #1
    1. Advertising

  2. Basically, you need to create and define new columns, add them to the columns
    collection, create new rows and add them to the rows collection.

    Anyway, here's a link I found:

    http://www.codeproject.com/aspnet/ASPNET_DataGrid_creation.asp

    "Big Dave" wrote:

    > I'm driving myself nuts trying to find a good tutorial in vb.net to
    > create a datagrid at runtime. I've got how to do it at design time,
    > but I'd like to build a class that handles all of the coding so I
    > don't have to do it every time. Does anybody know of a good tutorial
    > that covers adding columns at runtime, including a column that
    > displays a label from a lookup table in the bound dataset and a
    > dropdown list for that columns edititemcommand.
    >
    =?Utf-8?B?S2VuIENveCBbTWljcm9zb2Z0IE1WUF0=?=, Oct 7, 2004
    #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. michele

    How to create controls at runtime

    michele, Aug 4, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    402
    Scott M.
    Aug 4, 2004
  2. wannensn

    Create DataGrid at runtime!

    wannensn, Jun 24, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    0
    Views:
    141
    wannensn
    Jun 24, 2005
  3. wannensn

    Create DataGrid at runtime

    wannensn, Jul 19, 2005, in forum: ASP .Net Datagrid Control
    Replies:
    1
    Views:
    279
    Elton Wang
    Jul 19, 2005
  4. michele

    How to create controls at runtime

    michele, Aug 4, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    115
    Scott M.
    Aug 4, 2004
  5. Jaime Stuardo

    How to create HTML controls a runtime

    Jaime Stuardo, Jul 22, 2005, in forum: ASP .Net Web Controls
    Replies:
    2
    Views:
    793
    Jaime Stuardo
    Jul 22, 2005
Loading...

Share This Page