System.Data.DataTable table = dataSet.Tables[0];
var GridviewData = from oneRow in table.AsEnumerable()
select new
{
ID = oneRow.Field<Int32>("ID"),
Amount = oneRow.Field<decimal>("Amount"),
Description = oneRow.Field<string>("Description"),
DateTime = oneRow.Field<System.DateTime?>("DateTime"),
};
var GridviewData = from oneRow in table.AsEnumerable()
select new
{
ID = oneRow.Field<Int32>("ID"),
Amount = oneRow.Field<decimal>("Amount"),
Description = oneRow.Field<string>("Description"),
DateTime = oneRow.Field<System.DateTime?>("DateTime"),
};
This comment has been removed by a blog administrator.
ReplyDeleteThis comment has been removed by a blog administrator.
ReplyDelete