Updating gridview checkbox
To S @13598 - My Item Template seems to work fine as it only has to display the data.
I have a gridview with an update capabilities - a textbox column (room Name), a dropdownlist(org ID), a dropdownlist(room Type ID),a checkbox column (dial Out), a checkbox column (dial In).
When I try to add another checkbox column, the sql database isn't updated properly with a 0/1 or false/true but with null.
As Figure 4 shows, when the page is visited through a browser a Delete button is included. Figure 4: Each Grid View Row Now Includes a Delete Button (Click to view full-size image) Upon clicking a Delete button, a postback occurs, the Grid View assigns the Figure 5 depicts this interaction graphically.
Refer back to the Examining the Events Associated with Inserting, Updating, and Deleting tutorial for a more detailed discussion on the chain of events associated with inserting, updating, and deleting from a data Web control.