Monday, April 11, 2011

How can I select a particular cell value in a grid view control?

How can I select a particular cell value in a grid view control to store in another variable (a string).

I created an empty row in my GridView and I entered blank values into that row.

How can I update the DB table from the GridView now?

From stackoverflow
  • foreach(GridViewRow row in this.urgridname.Rows)
    {
    var a=row.Cells[1].Text
    }
    

    Gets a GridView row's cell value.

0 comments:

Post a Comment