|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
problem with GridViewHey
asp.net 2.0 I got a GridView on my webpage. When I run the webpage and select a row in the GridView, the SelectedIndexChanged event isn't triggered. The row I clicked on isn't marked as selected. I have enabled selection on the GridView Any suggestions on how to solve this is very welcome! jeff Could you please post the source code of your page?
Jeff wrote: Show quoteHide quote > Hey > > asp.net 2.0 > > I got a GridView on my webpage. When I run the webpage and select a row in > the GridView, the SelectedIndexChanged event isn't triggered. The row I > clicked on isn't marked as selected. I have enabled selection on the > GridView > > Any suggestions on how to solve this is very welcome! > > jeff this is the source of my GridView control
<asp:GridView ID="gvQuestions" runat="server" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="id" DataSourceID="sdsQList" ForeColor="#333333" GridLines="None"> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <Columns> <asp:CommandField ShowSelectButton="True" /> <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" ReadOnly="True" SortExpression="id" /> <asp:BoundField DataField="subject" HeaderText="subject" SortExpression="subject" /> </Columns> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <EditRowStyle BackColor="#999999" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> </asp:GridView> I tested this a bit more and sometimes this works, sometimes the SelectedIndexChanged event is triggered, but NOT every time Jeff Show quoteHide quote "filthysock" <filthys***@gmail.com> wrote in message news:1157527309.894715.267410@m79g2000cwm.googlegroups.com... > Could you please post the source code of your page? > Jeff wrote: >> Hey >> >> asp.net 2.0 >> >> I got a GridView on my webpage. When I run the webpage and select a row >> in >> the GridView, the SelectedIndexChanged event isn't triggered. The row I >> clicked on isn't marked as selected. I have enabled selection on the >> GridView >> >> Any suggestions on how to solve this is very welcome! >> >> jeff > Hi Jeff,
I just copied and pasted that into a test project and linked it to a sqldatasource and everything seems to work fine. Are you doing any extra work in the codebehind? Jeff wrote: Show quoteHide quote > this is the source of my GridView control > <asp:GridView ID="gvQuestions" runat="server" AutoGenerateColumns="False" > CellPadding="4" > DataKeyNames="id" DataSourceID="sdsQList" ForeColor="#333333" > GridLines="None"> > <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> > <Columns> > <asp:CommandField ShowSelectButton="True" /> > <asp:BoundField DataField="id" HeaderText="id" InsertVisible="False" > ReadOnly="True" > SortExpression="id" /> > <asp:BoundField DataField="subject" HeaderText="subject" > SortExpression="subject" /> > </Columns> > <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> > <EditRowStyle BackColor="#999999" /> > <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" > ForeColor="#333333" /> > <PagerStyle BackColor="#284775" ForeColor="White" > HorizontalAlign="Center" /> > <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> > <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> > </asp:GridView> > > I tested this a bit more and sometimes this works, sometimes the > SelectedIndexChanged event is triggered, but NOT every time > > Jeff > > > "filthysock" <filthys***@gmail.com> wrote in message > news:1157527309.894715.267410@m79g2000cwm.googlegroups.com... > > Could you please post the source code of your page? > > Jeff wrote: > >> Hey > >> > >> asp.net 2.0 > >> > >> I got a GridView on my webpage. When I run the webpage and select a row > >> in > >> the GridView, the SelectedIndexChanged event isn't triggered. The row I > >> clicked on isn't marked as selected. I have enabled selection on the > >> GridView > >> > >> Any suggestions on how to solve this is very welcome! > >> > >> jeff > >
Other interesting topics
OleDbDataAdapter created in code behaves differently from one created by wizard.
.NET 2005 'Could not load file or assembly' every few days - asp.net 1.1 Q about ASP speeds Iframe extra space Error BC30451 Problems with System.Net.Mail Managing Database Connections! change the scrollbar color in a listbox Build Failed but no Errors |
|||||||||||||||||||||||