Rowupdating command in gridview
After it has been clicked the postback places that row in edit mode. At this point in time the above Edit Item Template is displayed with two Image Buttons within it. My problem lies in that the click on the Update Image Button posts back, but neither the Row Command nor Row Updating events get triggered.I have set the requisite attributes in the Grid View tag. Once I checked Is Post Back in Row Updating event.. Configuration; public partial class _Default1 : System. Actually last night I spent many hours on this issue . Within the Item Template I have an Image Buttong with a Command Name of "Edit".This works as expected and I can put a breakpoint in the Row Command event handler to see the "Event" command name.
Right now, I have not written code for the Update event. Right now, I have not written code for the Update event. Then the page posts back, the text boxes go back to being labels and the new values are lost, and the Row Updating code never fires.A row is suppose to be not showing in the grid whenever user update a record.The Show All Classes() method is suppose to fetch records from sql db excluding recently updated row. Localhost: As I click on the button it hides the row (means binding is done again). (as required) On deployed application: Upon user click the row doesn't hide and user is able to click many times on the button (as if function is not working).How ever i can access the controls in row updating . Net Search, and more you are not using a Data Source control which means you need to provide the datasource again to the Grid View and bind it after you set the editindex (call its Data Bind() method) Only after you have bound it again with its datasource you will be able to find the Drop Down List using Find Control: EDIT: you will find other examples that involve the Row Data Bound event too - wherein you could check for the edit mode and still do the same using Find Control Pete, This is what i am doing in Row Editing .I can get the control in rowupdating but my main purpose is to get dropdown in this event and populated dropdown.
please help me in this problem if possible provide your code here.