Top "Datarow" questions

DataRow is an ADO.

Why can't I do foreach (var Item in DataTable.Rows)?

Is there a reason why I can't do the following: foreach (var Item in DataTable.Rows) { rather than having to …

c# .net datatable foreach datarow
How to extend DataRow and DataTable in C# with additional properties and methods?

I would like create a custom DataRow that will have -let's say- a propery called IsCheapest. public class RateDataRow : DataRow { …

c# ado.net datatable extend datarow
How to find max value in a column in a datarow[] ?

I have a simple problem but I just don't understand any of the examples I find here or in MSDN. (…

c# ienumerable max datarow icomparable
Convert DataRow to Object with AutoMapper

I can successfully map from IDataReader to a List of objects but when I want to take one DataRow it …

c# automapper datarow
what is the correct way to read from a datarow if the cell might be null

I have the following code which seems to blow up if the column in the datarow (dr) is null. what …

c# null datarow
Is it better to use the column name or column index on .Net DataSets?

When retrieving values from a DataRow is it better to use the column name or column index? The column name …

.net dataset obfuscation datarow
Is it possible to insert DataRow into a DataTable at index 0?

This question answers how to insert a DataColumn at position 0. Is there a way to do the same thing with …

c# datatable datarow
Check if WPF DataRowView contains a column

I can get the value of a column in a DataRowView using DataRowView row; object value = row["MyColumn"]; of course, …

wpf datarow
How do I get this Linq query with custom join into a DataSet?

I cannot seem to get past the anonymous type used by Linq's select clause when using join. I want to …

c# linq join datarow anonymous