hello im trying to retrieve data from an entire row in datagridview.i know how to get data from a particular cell but i want to get the particular row into an arraylist.all i can think of is this
but it is showing the error:"The best overloaded method match for 'System.Data.DataRow.this[int]' has some invalid arguments"Code:foreach (DataRow row in dt1.Rows) { foreach (var item in row.ItemArray) { list.Add(row[item].ToString()); } }
please help




Reply With Quote