Live sex chat littli frinds group - Row editing and updating in gridview in asp net
In this article, we will explore how to add, update, delete and select a record from sql server database using gridview control in a simple way.
I’m using visual studio 2008 and sql server 2008 for this sample.
To enable editing, set the Auto Generate Edit Button property to true and specify the Data Key Names as the primary key of your table.
now bind that Session["data"] to gridview afetr gv. New Edit Index; Per kamalchhabra's suggestion it rebinds to nothing. What I'm trying to do in Grid View2_Row Editing() is to dynamically handle row edit because it's not handled statically with Data Source ID attribute.
Would you like to answer one of these unanswered questions instead?
Could you provide please some code about it or adapt the code of your article?
I am developing a web app in asp.net/trying to simulate a desktop app I developed which needs for editable cells in gridviews where users need for increase/decrease the number of rows/columns, being them all editable.
One note will be helpful for you, while describing Columns in Grid View if you are using a boundfield then create objects of the control using cells[index] in the rowupdateing event of Grid View, but if you are using controls itself like Label or textboxes etc then use Fincontrol("stringid").