Results 1 to 3 of 3

Thread: datagrid edit

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 1999
    Posts
    165

    Question datagrid edit

    Hi,
    When trying to edit rows in the datagrid does the underlying datasource need to have a single primary key - i.e. can editing be set up on a source which has composite key?
    If it can - how?

    Cheers.

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Its easier if you have a primary key. If not, you'll have to build a sql statement to check for all the fields.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 1999
    Posts
    165
    Thanks,
    the reason I'm asking is that my app doesn't respond to edit button - not firing Datagrid_EditCommand at all.
    The datagrid is based on a dataview which has filtered on the foreign key and currently there is no unique key for this table.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width