Click here to Skip to main content
11,928,605 members (50,069 online)
Rate this:
Please Sign up or sign in to vote.
Good Day

I have a ASP.NET Gridview which is data bound, I wish to clear a row of this Gridview of it's selections.

In each Row is a textbox, a radiolist group and a link button which will be used to Clear the row; how would I clear the textbox and radiolist group items which are selected in javascript so I don't cause a postback.

<asp:GridView ID="grdComplianceElements" runat="server" AutoGenerateColumns="False"
        ViewStateMode="Enabled"  DataSourceID="ObjectDataSource1" DataKeyNames="ID" Font-Size="11px"
            <asp:BoundField DataField="ID" HeaderText="ID" Visible="false" />
            <asp:BoundField DataField="Title" HeaderText="Rating Element" />
            <asp:TemplateField HeaderText="Compliance Element">
                    <asp:RadioButtonList ID="rblRComplianceElement" runat="server"   RepeatDirection="Horizontal"
                        DataValueField="ComplianceElementID" DataTextField="ComplianceElement" Font-Size="11px">
            <asp:TemplateField HeaderText="BasicRatingElement" Visible="false">
                    <asp:Label ID="lblBasicRatingElement" runat="server" Text='<%# eval("BasicRatingElement") %>'></asp:Label>
            <asp:TemplateField HeaderText="AClassRatingElement" Visible="false">
                    <asp:Label ID="lblAClassRatingElement" runat="server" Text='<%# eval("AClassRatingElement") %>'>
Posted 26-Nov-12 2:15am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web04 | 2.8.151126.1 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100