C# .NET - How to get the value of last column cell in grid view in c# windows application?

Asked By giri s on 03-Dec-12 08:37 AM
in my windows application page, i have a grid view and added rows dynamically to that grid view. i want to display the each last row value is given and before going to next new row datas are entered. i want to do this for dynamic


i cant get last column cell value in each row. its possible to take any other column cells value before last row..


how to do this??pls guide me friends
hariharan v replied to giri s on 03-Dec-12 11:24 PM

xxxxx.Text= dataGridView1[5, e.RowIndex].Value.ToString();