Solved

UltraWinGrid - How to display Date and Time in same column

Posted on 2008-06-10
2
5,189 Views
Last Modified: 2013-11-15
I'm using NetAdvantage 2006 Volumne 2 CLR 2.0.

I have a grid that I manually update the datasource with a stored Procedure.  I have a Column that is  defined as date/time and also defined as type date/time in the grid layout.  What I need is the Data nd Time to display in the column.  the values show as date-time in the datarows in SQL Server.
Can this be accomplished and How.

Thanks
Mlookup-Date.jpg
0
Comment
Question by:wayneburr
[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
2 Comments
 
LVL 17

Accepted Solution

by:
ZeonFlash earned 500 total points
ID: 21756472
Change the "Format" property of the date column to use the format string you desire;  probably something along the lines of "MM/dd/yyyy hh:mm:ss tt" in order to get "06/10/2008 9:57:23 PM".
UltraGrid1.DisplayLayout.Bands(0).Columns("DateColumn").Format = "MM/dd/yyyy hh:mm:ss tt"

Open in new window

0
 

Author Closing Comment

by:wayneburr
ID: 31465949
Added the solution to grdMaterialLookup_InitializeLayout and worked like a charm.  Thanks!
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.

737 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