Multiple index columns (keys)

Discussion in 'ASP .Net Datagrid Control' started by Tony, Aug 23, 2003.

  1. Tony

    Tony Guest

    Can a DataGrid datakey (column) value be more than one column (composite
    key)?

    --
    -Tony.
     
    Tony, Aug 23, 2003
    #1
    1. Advertising

  2. Tony

    Teemu Keiski Guest

    It, DataKeyField, can reference only one field in datasource, but in the SQL
    query for example that creates the data you could concatenate multiple
    fields into one by using semicolon etc as a separator and that way you can
    get the same behaviour (when getting the datakey just split with the
    separator and you get all keys into an array).

    --
    Teemu Keiski
    MCP, Designer/Developer
    Mansoft tietotekniikka Oy
    http://www.mansoft.fi

    AspInsiders Member, www.aspinsiders.com
    ASP.NET Forums Moderator, www.asp.net
    AspAlliance Columnist, www.aspalliance.com


    "Tony" <> wrote in message
    news:...
    > Can a DataGrid datakey (column) value be more than one column (composite
    > key)?
    >
    > --
    > -Tony.
    >
    >
     
    Teemu Keiski, Aug 25, 2003
    #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. sandeep Kanwal

    serial keys/validation keys

    sandeep Kanwal, Oct 29, 2004, in forum: C++
    Replies:
    1
    Views:
    598
    Mike Wahler
    Oct 29, 2004
  2. Harry George
    Replies:
    9
    Views:
    745
    sonal
    Jun 13, 2006
  3. Replies:
    10
    Views:
    756
    Daniel T.
    Feb 3, 2006
  4. alan
    Replies:
    3
    Views:
    381
    Victor Bazarov
    Nov 28, 2007
  5. Tomasz Chmielewski

    sorting index-15, index-9, index-110 "the human way"?

    Tomasz Chmielewski, Mar 4, 2008, in forum: Perl Misc
    Replies:
    4
    Views:
    355
    Tomasz Chmielewski
    Mar 4, 2008
Loading...

Share This Page