Insert a column in a datatable?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • johnb41

    #1

    Insert a column in a datatable?

    You can ADD a column to a datatable easily: datatable.Colum ns.Add()

    I would like to INSERT a column instead of adding it to the end. Is
    this possible?

    Thanks!
    John

  • W.G. Ryan eMVP

    #2
    Re: Insert a column in a datatable?

    You can remove them at a specific index but I don't belive you can insert
    them in at a specific index. Do you need this for UI Purposes or for logic
    to run? If UI, then with grids and all you can specify mappings to make
    them appear where you want them - otherwise you can always use the index to
    get what you want.

    HTH,

    Bill

    --
    W.G. Ryan, MVP

    www.tibasolutions.com | www.devbuzz.com | www.knowdotnet.com
    "johnb41" <orders@informa tik.com> wrote in message
    news:1115665416 .288260.109120@ o13g2000cwo.goo glegroups.com.. .[color=blue]
    > You can ADD a column to a datatable easily: datatable.Colum ns.Add()
    >
    > I would like to INSERT a column instead of adding it to the end. Is
    > this possible?
    >
    > Thanks!
    > John
    >[/color]


    Comment

    Working...