473,408 Members | 2,813 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,408 software developers and data experts.

yyyy-MM-dd HH:mm:ss:fff dateformat & datagrid

Hi,

I've tried to get to this formatting stuff once, a while ago.

I still didn't figure out how to format a date-column in a (data)-grid.
I have a dynamic query that returns a # of columns.
When it contains datetime-columns, I want these columns formatted like
SQLServer-datetimeformat 121.
I don't want the query to return datetime-columns converted to strings
because they are used for calculations

I want to hide some columns from the grid. Should I do this by setting the
with to zero ?

I am also looking for an "autowith"-activation for all columns of that grid.

Thanks,

Jobi

Nov 20 '05 #1
3 2989
Cor
Hi Jobi,

Have a look what this can do for you
http://msdn.microsoft.com/library/de...ormattopic.asp

And have a look for datagridcolumnstyles and datagridstyles for the other
questions.

I think it will help you?

Cor
I still didn't figure out how to format a date-column in a (data)-grid.
I have a dynamic query that returns a # of columns.
When it contains datetime-columns, I want these columns formatted like
SQLServer-datetimeformat 121.
I don't want the query to return datetime-columns converted to strings
because they are used for calculations

I want to hide some columns from the grid. Should I do this by setting the
with to zero ?

I am also looking for an "autowith"-activation for all columns of that

grid.
Nov 20 '05 #2
Hey, you know my mentor :))

May the force be with you ..
"One Handed Man [ OHM# ]" <OneHandedMan{at}BTInternet{dot}com> wrote in
message news:#p**************@TK2MSFTNGP10.phx.gbl...
Jobi, Do you know One Kenobi ?

lol

OHM

jobi wrote:
Hi,

I've tried to get to this formatting stuff once, a while ago.

I still didn't figure out how to format a date-column in a
(data)-grid.
I have a dynamic query that returns a # of columns.
When it contains datetime-columns, I want these columns formatted like
SQLServer-datetimeformat 121.
I don't want the query to return datetime-columns converted to strings
because they are used for calculations

I want to hide some columns from the grid. Should I do this by
setting the with to zero ?

I am also looking for an "autowith"-activation for all columns of
that grid.

Thanks,

Jobi


Regards - OHM# OneHandedMan{at}BTInternet{dot}com

Nov 20 '05 #3
Thanks for the info.

I'll try it out.

jobi
"Cor" <no*@non.com> wrote in message
news:eW**************@TK2MSFTNGP11.phx.gbl...
Hi Jobi,

Have a look what this can do for you
http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwindowsformsdatagridtextboxcolumnclassf ormattopic.asp
And have a look for datagridcolumnstyles and datagridstyles for the other
questions.

I think it will help you?

Cor
I still didn't figure out how to format a date-column in a (data)-grid.
I have a dynamic query that returns a # of columns.
When it contains datetime-columns, I want these columns formatted like
SQLServer-datetimeformat 121.
I don't want the query to return datetime-columns converted to strings
because they are used for calculations

I want to hide some columns from the grid. Should I do this by setting the with to zero ?

I am also looking for an "autowith"-activation for all columns of that

grid.

Nov 20 '05 #4

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

Similar topics

5
by: Steve M | last post by:
I have subclassed CollectionBase. I have also implemented GetEnumerator(). I have tried to set the DataSource of a DataGrid to an instance of my subclass. However, the items in the grid are not...
1
by: ray well | last post by:
hi, i need to preview the keys in my app in order to process F1-F10. i set keypreview of my form to true, and it does capture the keystrokes from all over the forms controls which i then...
1
by: MDB | last post by:
Hello All, I have a datagrid with multiple rows and columns When a user taps a column I update the quantity by one and then when they tap and hold, I display a context menu with Subtract and...
0
by: Jos Walrave | last post by:
I want to create an ASP.NET web application using C#. Purpose of the web application is access to a MS SQL Server database. Some of our customers are using large databases, so the application...
0
by: Glenn Engelbart | last post by:
I am trying to find out a way to get more code re-use & object orientation in the UI portion of my apps. (There already is plenty of both in the DataAccess & Business Logic portion of my apps. ...
6
by: Erik H. | last post by:
Trying to connect to MySQL db on localhost, and populate datagrid from a dataset using code inline method. Getting the following compile error: Error Message: "CS0246: The type or namespace...
2
by: Joe | last post by:
I have got a button in my datagrid and this is calling a javascript function. how do I pass the selected index of the datagrid to this javascript function.. Is this possible thanks in advance
2
by: ElanKathir .S.N | last post by:
Hi ! How to populate the Datagrid with out using the Dataset? I want to add the record dynamicly. Thanks & Regards Elankathir, B'lore, India.
2
by: Warex | last post by:
Hello I am having a problem with using the datagrid. I am attaching my data through a dataset via code to a datagridview.datasource. All if fine except if I make any changes to the datagrid the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.