Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Order Page... I'm almost there

Order Page... I'm almost there

Scheduled Pinned Locked Moved ASP.NET
questionsysadmin
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dirso
    wrote on last edited by
    #1

    Hi, After some research, I get this code, and it's pretty much the page I need

    <asp:GridView ID="gr" runat="server" GridLines="Horizontal"
    AutoGenerateColumns="False">
    <Columns>
    <asp:BoundField DataField="bc" HeaderText="Código de Barras" ReadOnly="True" />
    <asp:BoundField DataField="produto" HeaderText="Produto" ReadOnly="True" />
    <asp:TemplateField HeaderText="Preço Caixa">
    <ItemTemplate>
    <asp:TextBox ID="txtPC" runat="server" Text='<%# Bind("pc") %>'></asp:TextBox>
    </ItemTemplate>
    </asp:TemplateField>
    </Columns>
    </asp:GridView>

    How do I make the SelectedIndexChanging event to get fired without clicking a "edit" button? or any event at all from changing or leavind the txtPC Thanks, Dirso.

    Thanks, Dirso

    Y 1 Reply Last reply
    0
    • D Dirso

      Hi, After some research, I get this code, and it's pretty much the page I need

      <asp:GridView ID="gr" runat="server" GridLines="Horizontal"
      AutoGenerateColumns="False">
      <Columns>
      <asp:BoundField DataField="bc" HeaderText="Código de Barras" ReadOnly="True" />
      <asp:BoundField DataField="produto" HeaderText="Produto" ReadOnly="True" />
      <asp:TemplateField HeaderText="Preço Caixa">
      <ItemTemplate>
      <asp:TextBox ID="txtPC" runat="server" Text='<%# Bind("pc") %>'></asp:TextBox>
      </ItemTemplate>
      </asp:TemplateField>
      </Columns>
      </asp:GridView>

      How do I make the SelectedIndexChanging event to get fired without clicking a "edit" button? or any event at all from changing or leavind the txtPC Thanks, Dirso.

      Thanks, Dirso

      Y Offline
      Y Offline
      Yusuf
      wrote on last edited by
      #2

      <asp:GridView OnSelectedIndexChanging="GridViewSelectEventHandler" /> for further help see here[^]

      Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

      D 1 Reply Last reply
      0
      • Y Yusuf

        <asp:GridView OnSelectedIndexChanging="GridViewSelectEventHandler" /> for further help see here[^]

        Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

        D Offline
        D Offline
        Dirso
        wrote on last edited by
        #3

        The problem is that the event is not fired when I press tab or enter, since I didn't click the "Edit" button (I don't even have one). Thanks, Dirso

        Thanks, Dirso

        Y 1 Reply Last reply
        0
        • D Dirso

          The problem is that the event is not fired when I press tab or enter, since I didn't click the "Edit" button (I don't even have one). Thanks, Dirso

          Thanks, Dirso

          Y Offline
          Y Offline
          Yusuf
          wrote on last edited by
          #4

          Dirso wrote:

          The problem is that the event is not fired when I press tab or enter

          I don't know if this is possible through asp.net. You may have to write javascript code to handle this situation.

          Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

          D 1 Reply Last reply
          0
          • Y Yusuf

            Dirso wrote:

            The problem is that the event is not fired when I press tab or enter

            I don't know if this is possible through asp.net. You may have to write javascript code to handle this situation.

            Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

            D Offline
            D Offline
            Dirso
            wrote on last edited by
            #5

            Hi, I thought about it actually. But I have no idea how. I could create an onexit event for textbox easily, but how to assign it to the gridview row index? Thanks, Dirso.

            Thanks, Dirso

            Y 1 Reply Last reply
            0
            • D Dirso

              Hi, I thought about it actually. But I have no idea how. I could create an onexit event for textbox easily, but how to assign it to the gridview row index? Thanks, Dirso.

              Thanks, Dirso

              Y Offline
              Y Offline
              Yusuf
              wrote on last edited by
              #6

              google for it, I found this one http://stackoverflow.com/questions/258661/capturing-the-enter-key-when-editing-a-gridview-textbox[^]

              Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups