Order Page... I'm almost there
-
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
-
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
<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[^]
-
<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[^]
-
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
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[^]
-
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[^]
-
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
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[^]