Hi Team,
I am working in asp.net use gridview control with checkbox and link button . I wan to one thing when we are retriving record in gridview from database
after check on checkbox and click on link button then update one row record only .
Note: I want to update one record only after click on checkbox inside gridview please suugest how can do this?
Shubham KumarPosted Feb 2, 2016, 3:46 AM
--your chkbox goes here
on c# codebehind::
protected void grd_RowCommand(object sender, GridViewCommandEventArgs e)
{
try
{
if (e.CommandName == "recUpd")
{
//your logic for update like if checkbox is checked so update data if not whatever
}
}
catch
{
//your exception
}
}
Davin MartynPosted Feb 4, 2016, 12:40 AM
Davin MartynPosted Feb 2, 2016, 2:50 AM
Shubham KumarPosted Feb 2, 2016, 2:38 AM
Davin MartynPosted Feb 2, 2016, 2:30 AM
Shubham KumarPosted Feb 2, 2016, 1:43 AM