Set date format in gridview edit mode

Discussion in '.NET' started by RBeach1955, Jan 13, 2011.

  1. RBeach1955

    RBeach1955

    Joined:
    Jan 13, 2011
    Messages:
    9
    Below are the lines used to set one of the columns in my gridview. The column width in gridview mode is 85px wide with the date (Not datetime) format. In edit mode the width is set to 75px but the date is in datetime format. Please let me know how to format the edit mode to date format. Below is one of my columns:

    <asp:BoundField DataField="OrdDt" DataFormatString="{0:d MMM yyyy }"
    HeaderText="OrdDt" SortExpression="OrdDt">
    <HeaderStyle Width="85px"></HeaderStyle>
    <ControlStyle Width="75px" />

    Thanks
     
    RBeach1955, Jan 13, 2011
    #1
    1. Advertising

  2. RBeach1955

    RBeach1955

    Joined:
    Jan 13, 2011
    Messages:
    9
    This was my own overlooked item that was set to datetime in the sql table.
     
    RBeach1955, Jan 14, 2011
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian Candy
    Replies:
    2
    Views:
    1,174
    Janaka
    Feb 18, 2004
  2. misiek
    Replies:
    3
    Views:
    47,170
    misiek
    Mar 23, 2006
  3. =?Utf-8?B?R2VyaGFyZA==?=

    gridview row programatically set to edit mode

    =?Utf-8?B?R2VyaGFyZA==?=, Sep 29, 2006, in forum: ASP .Net
    Replies:
    2
    Views:
    14,893
    =?Utf-8?B?R2VyaGFyZA==?=
    Sep 29, 2006
  4. dba56
    Replies:
    0
    Views:
    677
    dba56
    Jan 16, 2008
  5. Jaime Stuardo

    GridView control enters edit mode when I click Edit link twice

    Jaime Stuardo, Apr 7, 2006, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    408
    Jaime Stuardo
    Apr 7, 2006
Loading...

Share This Page