Home All Groups Group Topic Archive Search About
Author
6 Sep 2006 7:07 AM
Jeff
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

Author
6 Sep 2006 7:21 AM
filthysock
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
Are all your drivers up to date? click for free checkup

Author
6 Sep 2006 7:37 AM
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
>
Author
6 Sep 2006 10:46 PM
filthysock
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
> >

Bookmark and Share