Windows Develop Bookmark and Share   
 index > Windows Forms Data Controls and Databinding > formating column problem
 

formating column problem

hello

I have column containing DateTime data. The text is formted in DataGridViewStyle to be ddmmyyyy. I need to have the same formating when i try to get the value of the cell, but then i get the format dd/mm/yyyy hh:mmTongue Tieds AM/PM

How do i keep data formating? Is there a way to get the data in the style i give in DataGridViewStyle?

Thanks

Barbi Rio  Friday, November 16, 2007 5:31 AM

nevermind, i found the solution it is to get the value using

DataGridVievCellVar.FormattedValue.ToString()

Barbi Rio  Tuesday, November 20, 2007 5:09 AM

nevermind, i found the solution it is to get the value using

DataGridVievCellVar.FormattedValue.ToString()

Barbi Rio  Tuesday, November 20, 2007 5:09 AM

You can use google to search for other answers

Custom Search

More Threads

• update database from datagridview
• Keyword not supported: 'provider'.
• ERROR [HY104] [Microsoft][ODBC SQL Server Driver]Invalid precision value
• ordering records in Datagrid view control using windows app
• How to stop the VS designer from adding items when using a custom BindingNavigator
• ColumnHeadersDefaultCellStyle.Alignment
• Another DataGridView Bug in VS.NET 2005
• send notify to detailgrid
• Bindingsource.AddNew Question
• DataGridViewImageCell