Aspxgridview rowupdating change value best places for dating

We will write down methods that will allow us to update, add and remove the credit card entities.

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.

In order to start editing a certain row, we can choose the way we are going to start this action.

At example you can add a Command Button in the grid itself or simply start editing let’s say on a row double click.

There are also many other modes, you have rich client and server side methods in order to start editing one or more rows.

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.

As first we will add a couple of new methods in our Data Service class.

Leave a Reply