Click here to Skip to main content
15,895,812 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi frnds friends...


I have table which has 5 columns... one of the column is "DateOfJoin" which is DateTime datatype of table which is in the format of YY/MM/DD by default.

query also use "stored procedure"...

I have taken the table to dataset and binded to gridview..
Posted
Updated 26-Apr-12 11:49am
v2
Comments
Sandeep Mewara 26-Apr-12 14:43pm    
And your issue is?
arunkumar1987 27-Apr-12 0:00am    
i stored db...dateofjoin column formating as datetime.
and than i can retive datagird but edit gird dataofjion column stored as text format.
Shahin Khorshidnia 26-Apr-12 17:50pm    
Great job what's the problem?
arunkumar1987 27-Apr-12 0:00am    
i stored db...dateofjoin column formating as datetime.
and than i can retive datagird but edit gird dataofjion column stored as text format.
Shahin Khorshidnia 27-Apr-12 0:05am    
Please inprove your question (Click on Improve) and add the problem to it.

1 solution

i stored db...dateofjoin column formating as datetime. and than i can retive datagird but edit gird dataofjion column stored as text format.
You need to use TemplateField.

Read about template fields used for editing grid here: MSDN: GridView Examples for ASP.NET 2.0: Editing the Underlying Data in a GridView[^]
MSDN: GridView Examples for ASP.NET 2.0: Working with TemplateFields[^]

Now, try!
 
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