Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1139
Preventing Row Deletion on client side
posted

I've got a grid with one column.  The row at ID 1 (index 0) cannot be deleted.

I'm using the javascript function:

function verify_delete(sender, eventArgs) {
    var continueDelete = confirm("Are you sure you want to delete this row?");
    if (!continueDelete)
        eventArgs.set_cancel(true);
}

to confirm deletion already.  Would be nice to be able to check for the index of the selected row at the same time and if its row index 0 then set cancel to true.

So far tho I can't find the selected row.  Any help??

Chuck