ado.net ? on splitting a column

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

    ado.net ? on splitting a column

    I have a DataTable of values I'm using in my asp.net (1.1) application.
    In one column, there is a composite value like "A,3". I'd like to know
    if there is a way I can add a couple of computed columns that would grab
    just one of these values (so I'd have a column with A and another column
    with 3). Can I do that in a more elegant way (without looping through
    the table to assign the values to the new columns)?
    Thanks!

    Matt
  • Michael Nemtsev [MVP]

    #2
    Re: ado.net ? on splitting a column

    Hello mattb,

    DataCollumnExpr ession?! http://davidhayden.com/blog/dave/arc...pressions.aspx

    ---
    WBR,
    Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

    "The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it" (c) Michelangelo


    mI have a DataTable of values I'm using in my asp.net (1.1)
    mapplication.
    mIn one column, there is a composite value like "A,3". I'd like to
    mknow
    mif there is a way I can add a couple of computed columns that would
    mgrab
    mjust one of these values (so I'd have a column with A and another
    mcolumn
    mwith 3). Can I do that in a more elegant way (without looping through
    mthe table to assign the values to the new columns)?
    mThanks!
    mMatt
    m>


    Comment

    Working...