views:

404

answers:

1

Can anyone provide me any web link of how to programmatically edit and update a GridView Cell using CommandField and normal CRUD operation (I.e. without using SqlDataSource)?

My goal is to achieve this by writing only C# code and minimum asp.net scripting.

You can have a look at this post and this post also (my failed requests!).

+1  A: 

you can try....

    ((Label)grd.Rows[e.RowIndex].Cells[0].FindControl("lblID")).Text = "your new cell text";

where Cells[0]= your cell index

Muhammad Akhtar