473,396 Members | 1,929 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,396 software developers and data experts.

datagrid default date format

We're loading one datagrid with various data results from stored procedures
in MSSQL. When there is a date column only mm/dd/yy is displayed. Some
datasets have dates and others don't so it would be nice not to have to
specifically set the style of a particular column. Is there some way to
tell the datagrid how to display dates when it has one? Other suggestions?
Nov 21 '05 #1
1 1068
Hi,

http://msdn.microsoft.com/library/de...asicprimer.asp

Ken
----------------
"Curtis" <cu****@synergyontheweb.com> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
We're loading one datagrid with various data results from stored procedures
in MSSQL. When there is a date column only mm/dd/yy is displayed. Some
datasets have dates and others don't so it would be nice not to have to
specifically set the style of a particular column. Is there some way to
tell the datagrid how to display dates when it has one? Other suggestions?

Nov 21 '05 #2

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

Similar topics

3
by: Andrew S. Giles | last post by:
Hello, I am importing a flat text file, and putting it into a datagrid for display on a form. Currently the users have their dates and times seperated. I have two fields, therefore in the...
7
by: Matthew Wieder | last post by:
Hi - I have a datagrid that has a black header and the rows alternate white and gray. The problem is that until items are added to the grid, the grid appears as a large black rectangle, which is...
1
by: J.B | last post by:
I have a datagrid that will display different datasets, (it runs different sprocs based on a value in the querystring) but it will always return 6 columns. The 5th and 6th columns are always Date...
5
by: Franck Diastein | last post by:
Hi, I'm binding a DataRead (obtained from a mssql SP)to a DataGrid, and one of the values is a date... The problem is that date is shown as dd/mm/yyyy hh:mm:ss and I would like to format it...
4
by: yer darn tootin | last post by:
Does anyone know the sort expression for a column that's data has been returned in the format, eg '07 Jul 05'?? The sort expression {..:"dd mmm yy"} doesn't work ( if the column was returned as...
4
by: hope | last post by:
Hi, How can I format a string field using Data Formatting Expression property in datagrid? For example: format last name from BROWN to Brown. Thanks
1
by: uknees | last post by:
Hi, I am a little rusty with vb.net so, i hope anyone can help. I would like to know where i can get information on how to bind data to a datagrid programmatically and also bind and format the...
1
by: Robert Batt | last post by:
Hello, I have a bound datagrid that contains the following date column Dim tcQuoteduedate As New DataGridTextBoxColum tcQuoteduedate.MappingName = "MYCustomerCustomerTQuoteDueDate...
1
by: Niclas Lindblom | last post by:
Hi, I have a bound column in a datagrid. The value in the database is using the SQL datetime format which gives both date and time. How do I configure the datagrid cell to only display the date...
0
by: webaccess | last post by:
Hi Friends ..!! I want to use datagrid/dataview control to data in tablular format,also I want to add paging and format the data of table column. Problem is data is coming from API Dom in as...
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:
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.