ado.net ? on splitting a column

  • Thread starter Thread starter MattB
  • Start date Start date
M

MattB

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
 
Hello mattb,

DataCollumnExpression?! http://davidhayden.com/blog/dave/archive/2006/07/09/DataColumnExpressions.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


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