Configure Data Source - Advanced

Rate It (1)

Last post 11-04-2006 9:06 PM by scripter26. 7 replies.

Sort Posts:

  • Configure Data Source - Advanced

    10-26-2006, 5:20 AM
    • Member
      187 point Member
    • ASQ
    • Member since 10-26-2006, 9:07 AM
    • Modimolle, SA
    • Posts 101

    I have created two tables. With the first Table I can configure the GridView to Insert, Edit and Delete records via the GridView form directly into the table.

    With the second table, I can not configure the  ADVANCED SQL GENERATION OPTIONS - I can not activate anything. Both the GENERATE INSERT, UPDATE, and DELETE STATEMENTS and USE OPTIMISTIC CONCURRENCY is greyed out.

    The second table have a relation to the first.

    What do I need to do in order to also be able to update the second table in the same way as the first table?

    Regards
    Jan

  • Re: Configure Data Source - Advanced

    10-26-2006, 11:21 PM
    You need to select some fields in the table before options become available.
    Thanks

    ------------------------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Configure Data Source - Advanced

    10-27-2006, 4:34 AM
    • Member
      187 point Member
    • ASQ
    • Member since 10-26-2006, 9:07 AM
    • Modimolle, SA
    • Posts 101

    Hi Mikhail,

    Thanks for the reply.

    This is just the thing - I have tried it. Whether I select all the fields ("*"), or just some them, I those options still stay greyed-out.

    I thought it might have something to do with the fact that the there is a relatationship between one of the fields in the second table and first Table "id"-field. Could it be, or not?

     Regards

    Jan

  • Re: Configure Data Source - Advanced

    10-27-2006, 5:10 PM
    • Member
      109 point Member
    • CLEE
    • Member since 12-31-2005, 8:33 PM
    • Posts 34

    Hi Jan,

    Could be off base here, but this did happen to me once--and I realized that I didn't have a Primary Key set on the table I was pulling from.  If there is no PK, then those boxes will be greyed out.

    Just a thought.  

     

    It took a while, but .net and I seem to understand each other now.
  • Re: Configure Data Source - Advanced

    10-28-2006, 3:40 PM
    • Member
      117 point Member
    • Guy0510
    • Member since 10-27-2006, 12:01 PM
    • Halifax, NS
    • Posts 31
    CLEE:

    Hi Jan,

    Could be off base here, but this did happen to me once--and I realized that I didn't have a Primary Key set on the table I was pulling from.  If there is no PK, then those boxes will be greyed out.

    Just a thought.  

     

    That happened to me too. The table needs to have a primary key as far as I can see for those options to be available.

    Guy Lapierre
    Forefront Business Solutions
    Automotive Shop Management
    www.forefrontbusinesssolutions.com
  • Re: Configure Data Source - Advanced

    10-28-2006, 3:40 PM
    Answer
    • Member
      117 point Member
    • Guy0510
    • Member since 10-27-2006, 12:01 PM
    • Halifax, NS
    • Posts 31
    CLEE:

    Hi Jan,

    Could be off base here, but this did happen to me once--and I realized that I didn't have a Primary Key set on the table I was pulling from.  If there is no PK, then those boxes will be greyed out.

    Just a thought.  

     

    That happened to me too. The table needs to have a primary key as far as I can see for those options to be available.

    Guy Lapierre
    Forefront Business Solutions
    Automotive Shop Management
    www.forefrontbusinesssolutions.com
  • Re: Configure Data Source - Advanced

    10-29-2006, 4:45 AM
    • Member
      187 point Member
    • ASQ
    • Member since 10-26-2006, 9:07 AM
    • Modimolle, SA
    • Posts 101

    Hi CLEE and Guy0510,

    Perfect - problem solved! Thanks for your help!

    Regards
    Jan

  • Re: Configure Data Source - Advanced

    11-04-2006, 9:06 PM
    • Member
      441 point Member
    • scripter26
    • Member since 10-23-2006, 12:21 PM
    • Posts 191

    Just thought I would add my 2 cents in on this one.....

     

    I just exprienced the same issue... I have to say thank you to all that responded on this one because it was driving me insane (being a newbie and all)

Page 1 of 1 (8 items)