In ASP.NET, Can I Delete a row in GridView while the primary key of that table is not loaded into the gridview?
        Posted  
        
            by 
                Reddy S R
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Reddy S R
        
        
        
        Published on 2011-01-12T20:47:42Z
        Indexed on 
            2011/01/12
            20:53 UTC
        
        
        Read the original article
        Hit count: 431
        
Hi, I have a table with primary key whose importance is technically high and none business wise. So, when I display the table data to user, I would like not to show him the primary key. Even if I load it in sqldatasource and dont show (I did this by removing the cloumn in "Columns" tag of GridView), I am not able to update or delete row using the built-in UpdateCommand & DeleteCommand. I have created the delete paramters but it does nothing when I hit the delete button.
How to get around it?
Thanks R S Reddy
© Stack Overflow or respective owner