Formmating item in datagrid

Discussion in 'ASP .Net' started by =?Utf-8?B?YWxhbg==?=, Apr 21, 2005.

  1. my DB has a date column
    my data_set's locale is zh-HK, i want to the date format to be "en-US" while
    other items remain using zh-HK locale

    so, how i can only format the items for a specific column?
    thanks a lot!!
     
    =?Utf-8?B?YWxhbg==?=, Apr 21, 2005
    #1
    1. Advertising

  2. =?Utf-8?B?YWxhbg==?=

    Brock Allen Guest

    Brock Allen, Apr 21, 2005
    #2
    1. Advertising

  3. great, thanks!

    by the way, how can I retrieve the item from the datagrid?

    DataSet1.xxxx.xxxx = String.Format(locale,xxx,xxx)

    "Brock Allen" wrote:

    > DateTime.ToString is supposed to allow culture specific formats by passing
    > an additional argument:
    >
    > http://msdn.microsoft.com/library/d...temdatetimeclasstostringtopic4.asp?frame=true
    >
    > -Brock
    > DevelopMentor
    > http://staff.develop.com/ballen
    >
    >
    >
    > > my DB has a date column
    > > my data_set's locale is zh-HK, i want to the date format to be "en-US"
    > > while
    > > other items remain using zh-HK locale
    > > so, how i can only format the items for a specific column? thanks a
    > > lot!!
    > >

    >
    >
    >
    >
     
    =?Utf-8?B?YWxhbg==?=, Apr 21, 2005
    #3
  4. =?Utf-8?B?YWxhbg==?=

    Brock Allen Guest

    > by the way, how can I retrieve the item from the datagrid?
    >
    > DataSet1.xxxx.xxxx = String.Format(locale,xxx,xxx)


    You should be doing this in your template for the column where you specify
    the data binding.

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen
     
    Brock Allen, Apr 21, 2005
    #4
  5. thanks!
    i have got it :)

    "Brock Allen" wrote:

    > > by the way, how can I retrieve the item from the datagrid?
    > >
    > > DataSet1.xxxx.xxxx = String.Format(locale,xxx,xxx)

    >
    > You should be doing this in your template for the column where you specify
    > the data binding.
    >
    > -Brock
    > DevelopMentor
    > http://staff.develop.com/ballen
    >
    >
    >
    >
     
    =?Utf-8?B?YWxhbg==?=, Apr 21, 2005
    #5
    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. ssoss

    Display Related Item or Add Item

    ssoss, Sep 17, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    518
    ssoss
    Sep 19, 2003
  2. Replies:
    2
    Views:
    642
  3. Tim Golden
    Replies:
    0
    Views:
    580
    Tim Golden
    May 15, 2006
  4. Replies:
    6
    Views:
    326
    Dennis Lee Bieber
    Sep 8, 2007
  5. QUASAR
    Replies:
    6
    Views:
    461
    QUASAR
    Jan 17, 2004
Loading...

Share This Page