Formatting the data in the data grid,

Hello dear fellow programmers,

I am displaying data stored in a Access database through a datagrid control. One of the field stores time. In the datagrid, no time is displayed only the date (eg: 1/1/1899 something similar). I do understand that this field stores a data and time. As I am only interesting in the time no date is edited at any time. How can I change the format of this column programmitically.

Many thanks in advance for your precious help.

Pat

Comments

  • : Hello dear fellow programmers,
    :
    : I am displaying data stored in a Access database through a datagrid control. One of the field stores time. In the datagrid, no time is displayed only the date (eg: 1/1/1899 something similar). I do understand that this field stores a data and time. As I am only interesting in the time no date is edited at any time. How can I change the format of this column programmitically.
    :
    : Many thanks in advance for your precious help.
    :
    : Pat
    :
    Check out stdDataFormat

    You can create a custom format if required. StdDataFormats can be bound to Columns within a DataGrid control.

    Hope this helps a little

    John ;-)
  • Many thanks! It is a start!

    Pat


    : : Hello dear fellow programmers,
    : :
    : : I am displaying data stored in a Access database through a datagrid control. One of the field stores time. In the datagrid, no time is displayed only the date (eg: 1/1/1899 something similar). I do understand that this field stores a data and time. As I am only interesting in the time no date is edited at any time. How can I change the format of this column programmitically.
    : :
    : : Many thanks in advance for your precious help.
    : :
    : : Pat
    : :
    : Check out stdDataFormat
    :
    : You can create a custom format if required. StdDataFormats can be bound to Columns within a DataGrid control.
    :
    : Hope this helps a little
    :
    : John ;-)
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories