ado.net ? on splitting a column

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
 
M

Michael Nemtsev [MVP]

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top