C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




pls check


Posted Date: 16 Jan 2008      Total Responses: 1

Posted By: chinu       Member Level: Silver     Points: 2


In my datagrid , i placed delete command

private void DataGrid1_DeleteCommand(object source, System.Web.UI.WebControls.DataGridCommandEventArgs e)
{
DataRow r;
r = dt.Rows[e.Item.ItemIndex];
r.Delete();
cb = new OleDbCommandBuilder(da);
da.Update(ds,"contractexperience");
DataGrid1.EditItemIndex=-1;
binddata();
}

It is showing an exception that : there is no row at postion 1,2,3....

I have 8 columns in my datagrid , which ever row i select for deleting , it is saying there is no row at that position

Is there any thing to change, can any body help me pls...





Responses

Author: Harsha    16 Jan 2008Member Level: GoldRating:     Points: 2
http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.datagrid.deletecommand(VS.80).aspx


Post Reply
You must Sign In to post a response.
Next : What is a cache object ?
Previous : AssemblyInfo.cs and Program.cs is not found
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

fax server

Contact Us    Privacy Policy    Terms Of Use