Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
16884 | Jul 26,2004 10:14 PM UTC | Jul 27,2004 03:57 PM UTC | WinForms | 4 |
![]() |
Tags: GridControl |
GridStyleInfo style = this.grid.Binder.InternalColumns["TheDateCol"].StyleInfo;
style.CellType = "Static";
style.CellValueType = typeof(DateTime);
style.Format = "MM/dd/yyyy";
This code assumes you have not explicitly added GridBoundColumns to teh grid. If you have, then use style = grid.GridBoundColumns["TheDateCol"].StyleInof to get the style object for the column.
>GridStyleInfo style = this.grid.Binder.InternalColumns["TheDateCol"].StyleInfo;
>style.CellType = "Static";
>style.CellValueType = typeof(DateTime);
>style.Format = "MM/dd/yyyy";
>
>This code assumes you have not explicitly added GridBoundColumns to teh grid. If you have, then use style = grid.GridBoundColumns["TheDateCol"].StyleInof to get the style object for the column.
>>GridStyleInfo style = this.grid.Binder.InternalColumns["TheDateCol"].StyleInfo;
>>style.CellType = "Static";
>>style.CellValueType = typeof(DateTime);
>>style.Format = "MM/dd/yyyy";
>>
>>This code assumes you have not explicitly added GridBoundColumns to teh grid. If you have, then use style = grid.GridBoundColumns["TheDateCol"].StyleInof to get the style object for the column. This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.