Hi friends,
i have a gridview in that there is a Column for Check box and others are for Entering data like MaterialDescription,Quantity,etc.,
i have query for how to get Checkbox in gridview & on selecting a particular check box in that row the Quanity textbox in Gridview should be enabled or Disabled on unselect.
pls reply how can it be done!!!
regards,
aamir
Loading
Aamir KhanPosted Jun 21, 2012, 4:46 AM
Posted Jun 20, 2012, 8:55 AM
DataSourceID="mySource" Width="366px" CellPadding="4"
ForeColor="#333333" GridLines="None">
<asp:CheckBox ID="chkSelect" runat="server" />
Later you can attach a javascript event to enable and disable the particular row.
http://bitswork09.wordpress.com/2012/03/20/enable-and-disable-controls-in-gridview-with-javascript/
http://stackoverflow.com/questions/10491041/how-to-set-gridview-checkbox-to-checked-when-i-click-an-aspbutton-in-the-same-r
http://challlengebrains.blogspot.in/2011/08/gridview-with-checkbox-select-all-and.html
You can write server side event also to do enable and disable the particular row.