Rowupdating event devexpress grid
When an end-user starts to edit the New Item Row, the Init New Row event is raised.
You can handle this event to initialize the required fields within the new record. Get Row method, cast it to the data item type and set the data property values.
I have the following code below in my Grid View1_Row Updating event. Maybe after midnight today, or sometime this weekend. When I go to configure the datasource for my Object Data Source, on my first screen where I designate the business object, my dropdownlist is blank. Turns out getting the DAL, BLL, and the Object Data Souce in place, did the trick. Tracing the code, using both methods above, the value of the textbox is not being passed back; it doesn't appear in the newvalues either.
That probably needs to be linked into the Object Data Source along my Get Products, as well as the Add Products, and Delete Product methods. Problem is, I don't have the time at the moment yet. And back to my original question, how to I get the new value? I have a gridview, go into edit mode, enter a value in a textbox, then click update.
I do have a Update Products method in my business logic class which is ties into the data class. Once I got that in place, the dropdownlist populated. I haven't had many problems with gridview, but this one has thrown me. Enabled = allow Admin Edit End If Dim price As Text Box = CType(e. Read Only = Not allow Admin Edit End If //some more columns enabled/disabled too End If 0 Then Return If e.
NET Forum so that other people can learn from the experience too. -Frinny You may need to turn off validation even if you are not validating anything.You have to make sure that you aren't setting your Grid View's data when it is not postback.If you do this, your Grid View's source will be refreshed before you're able to grab the new values out of it. My guess is that if you can get the Gridview has a Currency Manager somehow attached, then you can probably get the values from it. I'm in a similar boat...almost the same conditions. NET 1.1 that the datagrid had something called a Currency Manager...it looks like the object still exists in 2.0.