Aspxgridview rowupdating change value

You can find on Devexpress support web site several issues that are speaking about this behavior and why of it. Define the following server side event: What we defined here is checking if the cells that are going in edit mode are the one we are aiming to put in edit (not the Name and Total columns) and if so we are setting a couple of properties.As first, we are indicating the cell as read only, after that we are casing the control to an ASPx Text Box (which is the right control for these columns) and setting several parameters in order to make the editing look proper.Check this post about how to get the Dev Express controls and on how to eventually upgrade the project At the end the result should be similar to this, however there is much more, so check this post till the end. Live version persist the data in the session so each new session will reset all the data you have inserted. If you are interested in the code, I can provide it to you, just ask in comments.If you are new to using a grid control, I would recommend you to read my blogs “Using Grid View in ASP. The Eval method takes the name of a data field and returns a string containing the value of that field from the current record in the data source.

I will not go in the detail about the environment and developing requirements, if interested jump op to my other posts.

public static bool Add New Credit Card(string credit Card Name) public static bool Update Credit Card(int credit Card Id, string credit Card Name) public static string Get Credit Card(int credit Card Id) public static bool Remove Credit Card(int credit Card Id) This code is pretty straight forward.

The only exception is the Remove Credit Card method, which actually doesn’t delete the item and in cascade the related items in the tbl_Import, but only flags the credit card as inactive.

If you missed my previous post you can get it here: ASPx Grid View Excel style – Adding notes to grid cells.

The main goal for this time is to add inline editing functionality to the grid, in order to be able to update the imports and manage adding, editing and removing credit cards.

Leave a Reply