Click here to Skip to main content
15,902,275 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi developers,

My problem is that when I have load a csv file into the datagridveiw through dataset using C# language, data can reflect the date in column in 29.08.2010 format, then I changed them to the 29-9-2010
format. The problem is that if I change the system dateformat the date of datagridveiw automatically change.

I just want that system date should not impact the datagridveiw dateformat. What I can do? Please help me solve my problem.


Its my kindly request solve this problem Imediatly my ID is

[email-id removed]

language used :- C#
application : windows application
(tagged)
Posted
Updated 8-Nov-10 7:05am
v4

1 solution

You can use this to set the date format:

yourDataGridView.Columns[dateColumn].DefaultCellStyle.Format
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900