Detailsview empty dataset insert

Ask a Question related to ASP.NET Data Grid Control, Design and Development.

  1. #1

    Default Detailsview empty dataset insert

    My details view is in insert mode and my dataset is empty but the details
    view doesnt show.

    who can help me, how to do?

    Also I tried to set the defaultmode to insert mode, but i found i can't
    cancel the inserting.

    thanks in advance.



    Eric Zhao Guest

  2. Similar Questions and Discussions

    1. Extending the DetailsView
      Hey! I need to get a start at extending the DetailsView control. I tried overriding a few methods like CreateRow, but all my Controls.Adds would do...
    2. Questions concerning detailsview or datagrid ASP.NET 2.0
      Hello, first of all - let me introduce myself. I am a german ColdFusion developer since 1997. I watched the development of Asp.net for a few...
    3. Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset
      Hi All, I am facing problem in copying content of table from a untyped dataset into to a table inside the typed dataset. I wanted to copy the data...
    4. Checking for Empty Dataset -- Simple Question
      Can anyone tell me how to check and see if a dataset is empty? I am writing a search function that returns a dataset and binds it to a datagrid....
  3. #2

    Default Re: Detailsview empty dataset insert

    What DataSource control are you using? The problem is that the DetailsView
    needs to know a 'template' of what the insert data should be, so it calls
    the SelectMethod to get an example of what to automatically build for ther
    insert. If you're using an ODS and your select method returns null then the
    DetailsView has no idea what fields to make available.

    The other solution is to build the InsertTemplate for each value manually.

    -Brock
    DevelopMentor
    [url]http://staff.develop.com/ballen[/url]


    > My details view is in insert mode and my dataset is empty but the
    > details view doesnt show.
    >
    > who can help me, how to do?
    >
    > Also I tried to set the defaultmode to insert mode, but i found i
    > can't cancel the inserting.
    >
    > thanks in advance.
    >


    Brock Allen Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139