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 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsForums
Top experts
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Dorababu MekaRank #457 · 5.5K reputationPosted Mar 22, 2016, 12:14 AM EDT
Sivajihero Hero99 reputationPosted Mar 22, 2016, 12:22 AM EDT
Dorababu MekaRank #457 · 5.5K reputationPosted Mar 22, 2016, 1:20 AM EDT
Sivajihero Hero99 reputationPosted Mar 22, 2016, 4:00 AM EDT
ali tuncerRank #1,499 · 1.1K reputationPosted Mar 22, 2016, 9:23 AM EDT
Sivajihero Hero99 reputationPosted Mar 23, 2016, 12:40 AM EDT