471,306 Members | 1,291 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,306 software developers and data experts.

DataColum.DefaultValue

I am trying to get a vale of a column.

Above gets me null, but it seems that I do have data.
How to get data out of a column?

tia,
..V
Jan 14 '06 #1
1 1390
..V,

The default value column will give you the value of the column if no
value is specified. If you want the value of the column, you need to go to
the row and get the value for the column. The DataColumn class is metadata
about the column, not what provides the values for themselves. You have a
nullable column with no default (or a default value of null) specified,
which is why the DefaultValue property returns true.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"netsql" <ce*******@gmail.com> wrote in message
news:ub**************@TK2MSFTNGP12.phx.gbl...
I am trying to get a vale of a column.

Above gets me null, but it seems that I do have data.
How to get data out of a column?

tia,
.V

Jan 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Maurice Mertens | last post: by
reply views Thread by Craig Schneider | last post: by
2 posts views Thread by timtos | last post: by
6 posts views Thread by Peter Hartlén | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.