How to Update the Records From GridView Through Coding RRS feed

  • Question

  • Hi,


      This is from Chandrakanth.


     Actually i am working on the GridView Control.


     Actually i want to update the Records from GridView by clicking the Edit Link.


     When i click on the Edit Link  it is Disaplying Update and Cancel buttons.


     My problem is how to update  the records from GridView Control.


     Can any one tell me This updation in GridView Through Coding not through  Properties.


     Tnaks in Advance


    With Regards


    Saturday, August 18, 2007 5:41 AM

All replies


    Dear Chandrakanth,


    Try this :


    DataGridViewRow row = DataGridView1.SelectedRows[0];

    row.Cells["ColumnName"].Value = "NewValue";



    Suprotim Agarwal

    Saturday, August 18, 2007 6:32 AM