I have some values in a DataGridRow (item Array) and I want to fetch all these values into a string array. How can I achieve this?
DataGridRow row = (DataGridRow)Lst.ItemContainerGenerator.ContainerFromIndex(k);
DataRowView Drv = (DataRowView)row.Item;
DataRow dr = (DataRow)Drv.Row;
One possibility is to call
dr.ItemArray;This will get you aobject[]. Then you have to cast each object tostringbefore you use it.