Datagrid In a webcontrol

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

  1. #1

    Default Datagrid In a webcontrol

    I have a datagrid with Edit/Delete columns in a webcontrol.
    I load this control dynamically based on users' selection from a table
    dropdownlist.
    The control loads fine and the data is there. However, when I click on Edit
    to change the current column, the column doesn't change to Update/Cancel.
    The data in the datagrid is gone. It's a blank datagrid.

    I need your help.
    --Thanks


    CalSun Guest

  2. Similar Questions and Discussions

    1. WebControl inside of WebControl and attaching events
      I have built a navigation custom web control that I have been placing on various pages without issue. When one of the image buttons within the...
    2. Style editing text in Datagrid WebControl
      Hello: I would appreciate any suggestion to overcome a problem editing cells in Datagrid WebControl. The user must type a long character string in...
    3. DataGrid WebControl does not use PropertyDescriptor.GetValue
      I have a custom collection object that implements ITypedList. The GetItemProperties method returns a collection of custom property descriptors. ...
    4. problem with andy's datagrid checkbox webcontrol
      Hi: I am using the Andy's datagrid checkbox webcontrol in here: http://metabuilders.com/Tools/RowSelectorColumn.aspx I ran the example given...
    5. Image Button in Datagrid WebControl
      in your itemdatabound or itemcreated event handler just add a label control or any control that will take a url tag to the cell. then add the image...
  3. #2

    Default Re: Datagrid In a webcontrol

    Please show your code in Edit event.


    "CalSun" <someone@somecom.com> wrote in message
    news:OacdtG5vFHA.3124@TK2MSFTNGP12.phx.gbl...
    > I have a datagrid with Edit/Delete columns in a webcontrol.
    > I load this control dynamically based on users' selection from a table
    > dropdownlist.
    > The control loads fine and the data is there. However, when I click on
    Edit
    > to change the current column, the column doesn't change to Update/Cancel.
    > The data in the datagrid is gone. It's a blank datagrid.
    >
    > I need your help.
    > --Thanks
    >
    >

    Elton Wang Guest

  4. #3

    Default Re: Datagrid In a webcontrol

    Thanks for the message.
    I have solved the problem. The Edit/Delete features work just fine with the
    datagrid. My problem was the order of event. I select a table from a
    dropdownlist and detect the change in page_load. The page_load event takes
    place before the dropdownlist change. It doesn't work with
    cmbTable.SelectedValue in page_load. I got the dropdownlist selection with
    request.form.

    --CalSun

    "Elton Wang" <elton_wang@hotmail.com> wrote in message
    news:uOMBhUDwFHA.720@TK2MSFTNGP15.phx.gbl...
    > Please show your code in Edit event.
    >
    >
    > "CalSun" <someone@somecom.com> wrote in message
    > news:OacdtG5vFHA.3124@TK2MSFTNGP12.phx.gbl...
    >> I have a datagrid with Edit/Delete columns in a webcontrol.
    >> I load this control dynamically based on users' selection from a table
    >> dropdownlist.
    >> The control loads fine and the data is there. However, when I click on
    > Edit
    >> to change the current column, the column doesn't change to Update/Cancel.
    >> The data in the datagrid is gone. It's a blank datagrid.
    >>
    >> I need your help.
    >> --Thanks
    >>
    >>
    >
    >

    CalSun 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