I have a gridview in which template field are there and contain textboxes,dropdowlist in each cell. In my application
I need to go to next cell in gridview while pressing enter. This application is working in internet explorer 10. But its not working in chrome or IE11. While pressing enter it will go from one text box to next but will stop when it reaches the dropdownlist.It only works textboxes inside the gridview.
This is my code for going to next column.
onkeydown="javascript:if(window.event.keyCode == 13) window.event.keyCode = 9;"
ReadOnly="false" Text="<%#Container.DataItemIndex+1 %>" Font-Bold="True">
Text='<%# Eval("Slno")%>' Font-Bold="True">
ontextchanged="txtSlno_TextChanged" Width="70px" Font-Bold="True" />
onkeyup="javascript:__doPostBack('UpdatePanel1','')"
ontextchanged="txtcode_TextChanged" Width="40" BorderStyle="None" Font-Bold="True" />
onkeydown="javascript:if(window.event.keyCode == 13) window.event.keyCode = 9;"
ReadOnly="false" Text='<%# Eval("Code")%>' Width="40" BorderStyle="None" Font-Bold="True">
onkeyup="javascript:__doPostBack('UpdatePanel1','')"
onblur="checkTextField1(this);"
ontextchanged="txtcode_TextChanged" Width="40" BorderStyle="None" Font-Bold="True" />
onkeydown="javascript:if(window.event.keyCode == 13) window.event.keyCode = 9;" Font-Bold="True">
onkeydown="javascript:if(window.event.keyCode == 13) window.event.keyCode = 9;" Width="74" Font-Bold="True">
onkeydown="javascript:if(window.event.keyCode == 13) window.event.keyCode = 9;"
Text='<%# Eval("Alt")%>'>
onkeydown="javascript:if(window.event.keyCode == 13) window.event.keyCode = 9;"
Text='<%# Eval("details")%>' Width="100%"
ontextchanged="txtdetails_TextChanged">
onkeydown="javascript:if(window.event.keyCode == 13) window.event.keyCode = 9;"
Text='<%# Eval("details") %>' Width="100%">
onkeydown="javascript:if(window.event.keyCode == 13) window.event.keyCode = 9;"
Width="360px">
6 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sivajihero HeroPosted Mar 23, 2016, 4:40 AM
ali tuncerPosted Mar 22, 2016, 1:23 PM
Sivajihero HeroPosted Mar 22, 2016, 8:00 AM
Dorababu MekaPosted Mar 22, 2016, 5:20 AM
Sivajihero HeroPosted Mar 22, 2016, 4:22 AM
Dorababu MekaPosted Mar 22, 2016, 4:14 AM