Datagrid help needed...

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Datagrid help needed...

    Hello, everyone,

    I have built a datagrid, with update features. I have added a "Template",
    and I added an option button on that template, with a OnCheckChanged="Massa"
    ...

    I have added the following code:

    Sub Massa(ByVal sender As System.Object, ByVal e As CommandEventArgs)

    'Code...

    End Sub


    The problem is I have to know which of the option button has been clicked...
    How can I do that?

    Thanks,

    Raphaël Désalbres


    Raphaël Désalbres Guest

  2. Similar Questions and Discussions

    1. URGENT help needed on XML+DataGrid+Images+Export
      Hi! Please, help me on the following task: I'm creating a product catalog (Flash + XML ) that will be used locally (from CD or on hard drive)....
    2. help needed regarding the datagrid and mages
      Hi could some one give me some information on how to dispay images in a datagrid control retrieving images stored in a folder. -- Sriram...
    3. Help needed with DataGrid Client-Side Scripting
      Hi, I have a custom ASP.Net DataGrid Control which has DropDownLists in each of the HeaderCells of the Grid. I'm not able to get the ClientID...
    4. DataGrid Help Needed
      I saw this article and have implemented the code however this line <script language="C#" runat="server" src="fetchData_sql.cs" /> refering...
    5. onclick in a DataGrid code splice needed
      Currently I have the following easy little Hyperlink column: <asp:HyperLinkColumn DataNavigateUrlField="Code"...
  3. #2

    Default Re: Datagrid help needed...

    You need to bind an indicator of some type to the control.
    For example, this is a "remove" button in my datagrid

    <ASP:TEMPLATECOLUMN HEADERTEXT="">
    <ITEMTEMPLATE>
    <ASP:BUTTON ID="btnRemove" RUNAT="server"
    ONCOMMAND="btnRemove_Command" COMMANDARGUMENT='<%#
    DataBinder.Eval(Container.DataItem, "RefID") %>' TEXT="Remove" />
    </ITEMTEMPLATE>
    </ASP:TEMPLATECOLUMN>

    Then I can get the CommandArgument parameter (my Record ID in this case) and
    handle the event accordingly...


    "Raphaël Désalbres" <raphael@desalbres.com> wrote in message
    news:Obs947lQDHA.1072@TK2MSFTNGP10.phx.gbl...
    > Hello, everyone,
    >
    > I have built a datagrid, with update features. I have added a "Template",
    > and I added an option button on that template, with a
    OnCheckChanged="Massa"
    > ..
    >
    > I have added the following code:
    >
    > Sub Massa(ByVal sender As System.Object, ByVal e As CommandEventArgs)
    >
    > 'Code...
    >
    > End Sub
    >
    >
    > The problem is I have to know which of the option button has been
    clicked...
    > How can I do that?
    >
    > Thanks,
    >
    > Raphaël Désalbres
    >
    >
    >

    David Waz... Guest

  4. #3

    Default Re: Datagrid help needed...

    Hello, I have already solved my problem with [url]www.datagridgirl.com[/url]

    Thanks,

    Best wishes,

    Raphaël Désalbres

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Web: [url]http://www.exceldev.com[/url]
    Phone: +55-67-431-54-14
    E-mail: [email]raphael@desalbres.com[/email]
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^




    "Raphaël Désalbres" <raphael@desalbres.com> escreveu na mensagem
    news:Obs947lQDHA.1072@TK2MSFTNGP10.phx.gbl...
    > Hello, everyone,
    >
    > I have built a datagrid, with update features. I have added a "Template",
    > and I added an option button on that template, with a
    OnCheckChanged="Massa"
    > ..
    >
    > I have added the following code:
    >
    > Sub Massa(ByVal sender As System.Object, ByVal e As CommandEventArgs)
    >
    > 'Code...
    >
    > End Sub
    >
    >
    > The problem is I have to know which of the option button has been
    clicked...
    > How can I do that?
    >
    > Thanks,
    >
    > Raphaël Désalbres
    >
    >

    Raphaël Désalbres 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