2 Replies - 14834 Views - Last Post: 26 April 2009 - 07:06 AM Rate Topic: -----

#1 Mahey   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 42
  • Joined: 22-April 09

DataGridView - Date column [Input format dd/MM/yyyy]

Posted 26 April 2009 - 01:32 AM

Hi,

With my datagridview I have column for datetime. I used the following for format.


Mydatagrid1.Columns(3).DefaultCellStyle.Format = "dd/MM/yyyy"


But the problem is it's getting input like MM/dd/yyyy and after pressing enter it's changing to dd/mm/yyyy style.

So is it possible to get input like "dd/MM/yyyy"

Thanks ...

Is This A Good Question/Topic? 0
  • +

Replies To: DataGridView - Date column [Input format dd/MM/yyyy]

#2 firebolt   User is offline

  • D.I.C Lover
  • member icon

Reputation: 93
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: DataGridView - Date column [Input format dd/MM/yyyy]

Posted 26 April 2009 - 06:44 AM

Does this help?

http://msdn.microsof...m.datetime.aspx
http://www.geekpedia...ime-object.html
Was This Post Helpful? 0
  • +
  • -

#3 Mahey   User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 42
  • Joined: 22-April 09

Re: DataGridView - Date column [Input format dd/MM/yyyy]

Posted 26 April 2009 - 07:06 AM

Hi,
Thanks For The Help.

I have added the column with datagrid like the following.

dim secidexp As New DataGridViewTextBoxColumn
Mydatagrid1.Columns.Add(secidexp)

so where to handle it for reading the specific format?
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1