.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

GridView multiple Row Deleting

Posted By: Mehul     Posted Date: July 25, 2011    Points:5   Category :ASP.Net
I am not getting how to show message when clicking on delete button without checking checkbox.I dont want to allow delete button to work without selecting check box...Please Help

Responses
Author: Ravi Ranjan Kumar             
Posted Date: July 25, 2011     Points: 20   

You can navigate given link to read an article which might help you
http://www.ezzylearning.com/tutorial.aspx?tid=2963442&q=deleting-multiple-rows-in-gridview-using-checkbox

Thanks & Regards
Ravi Ranjan Kumar
http://raviranjankr.wordpress.com
Author: Karthikeyan Anbarasan       [Moderator]      
Posted Date: July 27, 2011     Points: 20   

Nice example Ravi...

Thanks
Karthik
http://www.f5debug.net
Mark as Answer if the answer solves your issue!!!
Author: Sasi Prabhu             
Posted Date: July 29, 2011     Points: 20   


Use CheckBox Control over Gridview.


Thanks & Regards,
Sasi Prabhu.
Author: Gowthammanju             
Posted Date: July 29, 2011     Points: 20   

try these attached project for ur references


Download Attachment

Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true
Author: Gowthammanju             
Posted Date: July 29, 2011     Points: 20   

use coding as


 foreach (GridViewRow gv in GridView1.Rows)
{
CheckBox arun = (CheckBox)gv.FindControl("arun");
if (arun.Checked==true)
{
int res = Convert.ToInt32(GridView1.DataKeys[gv.RowIndex].Value);
SqlDataSource1.DeleteParameters["userid"].DefaultValue = res.ToString();

SqlDataSource1.Delete();

}
}


Thanks & Regards,
GowthamManju
Chennai



Mark if the answer is true


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend