Solved

Vb.NET/ DataTable.Column.DefaultValue /VB.NET 2005

Posted on 2006-06-28
3
1,056 Views
Last Modified: 2007-12-19
DataTable.Column.DefaultValue

Hi,

I have a DataTable in my DataSet with a "datetime" Column. I can specify a
DefaultValue for this Column using a String such as "01/01/2006" etc but can
I set it to default to today?
Something like ".DefaultValue = DateTime.Today" but do this in the designer
and not in code

i implement default value in SQL table level the GetDate() is accepted but does not seem to carrier
over to the DataSet
 
any help?
 
0
Comment
Question by:ali_alannah
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 2

Accepted Solution

by:
raahgeer earned 500 total points
ID: 16999809
it should work if you do assign current date time in "InitVars" method in desiner of that data table.
"initVars" can be found in dataset desiner code file, if you enable "show all files"  from "solution explorer"
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about a problem I had getting the GPS LocationListener working.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Introduction to Processes

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question