473,382 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Grid Auto fill columns, annoying unformatted date/time

I would like to instruct a grid which autofill's the columns to exclude time
or date from a date field when date or time is 0.

Date and time can be stored in a date field, my grid shows for example:

30-12-1899 13:23:12

Or:
15-11-2005 0:00:00

It's obvious that de date in the first is 0 and the 2nd time is 0
Nov 20 '05 #1
2 1729
you could write a function that will check the values of datetime values
before binding it to the datagrid. In that function you can format the value
in whichever way you want.

"Edwin Knoppert" wrote:
I would like to instruct a grid which autofill's the columns to exclude time
or date from a date field when date or time is 0.

Date and time can be stored in a date field, my grid shows for example:

30-12-1899 13:23:12

Or:
15-11-2005 0:00:00

It's obvious that de date in the first is 0 and the 2nd time is 0

Nov 20 '05 #2
IN Auto-fill mode?
"Sridhar" <Sr*****@discussions.microsoft.com> schreef in bericht
news:A1**********************************@microsof t.com...
you could write a function that will check the values of datetime values
before binding it to the datagrid. In that function you can format the
value
in whichever way you want.

"Edwin Knoppert" wrote:
I would like to instruct a grid which autofill's the columns to exclude
time
or date from a date field when date or time is 0.

Date and time can be stored in a date field, my grid shows for example:

30-12-1899 13:23:12

Or:
15-11-2005 0:00:00

It's obvious that de date in the first is 0 and the 2nd time is 0

Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: pmud | last post by:
Hi, I am using teh following code for sorting the data grid but it doesnt work. I have set the auto generate columns to false. & set the sort expression for each field as the anme of that...
1
by: Steve | last post by:
Hi I have a db with 2 tables that I want to bind to a grid depending on a selection in a Dropdownlist Also I want to be able to select a row from the gris to fill some textboxes. The databases...
16
by: pmud | last post by:
Hi, I am using teh following code for sorting the data grid but it doesnt work. I have set the auto generate columns to false. & set the sort expression for each field as the anme of that...
3
by: veenna | last post by:
How can i refresh datagrid in vb.net. I want to display color in one cell in grid but when it loads first time it is working here is my code Public Class Dialog_Colorazione Const YEAR_START...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.