I am attempting to prevent the deletion of a Row for my GridView like this:
void GridView1_RowDeleting(Object sender, GridViewDeleteEventArgs e)
{
if (GridView1.Rows[e.RowIndex].Cells[1].ToString() == "root")
{
e.Cancel = true;
}
}
But it's not working, I put a breakpoint in there but it ne...
I want to delete a row in the grid, but the grid always post's only the id and oper, I also want to post additional data.
My jqgrid is something like :
jQuery("#editgrid").jqGrid({
url:'autoJSON.php',
datatype: "xml",
colNames:['RowID','Asigurator','Cilindree','Persoana', 'Perioada', 'Pret'],
colModel:[
{name:'rowID'...
I have a SQL 2005 table with millions of rows in it that is being hit by users all day and night. This table is referenced by 20 or so other tables that have foreign key constraints. What I am needing to do on a regular basis is delete all records from this table where the "Active" field is set to false AND there are no other records in ...
I'm using a gridview where I list the articles on the page that the current logged in user has added to his/hers list of favorites. Next to the list I'd like to have a image of an X to delete the article from the list. However, I can't figure out how to get the ID of the article (so that I know what ID to delete from the SQL table) when ...