how can i write a code for deleting a row using gridview
#
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
#
{
#
GridViewRow row = GridView1.Rows[e.RowIndex];
#
#
objCust.CustId = Convert.ToInt32(objCust.findCustId().Tables[0].Rows[0][0].ToString());
#
#
objCust.DeleteNewUser();
#
#
if (objCust.DeleteNewUser() == 1)
#
{
#
bindGvEdit();
#
}
#
}
But I am getting a error as
CS0019: Operator '==' cannot be applied to operands of type 'System.Data.DataSet' and 'int'
Plz suggest how to rectify...
I have written stored procedure for DeleteNewUser in Sql server 2005... I am using visual studio 2005 as well..