Click here to Skip to main content
12,063,452 members (71,338 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
Web03 | 2.8.160204.4 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2016
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