My query is:
var query1 = from u in dc.Usage_Computers.AsEnumerable
where u.DomainUser == s3
orderby u.OperationTime descending
select new
{
u.ProgramVersion,
u.OperationTime,
u.IPaddress,
u.ComputerName,
u.DomainUser,
u.OnNetwork,
Operation = u.Operation == 1 ? "Login" :
u.Operation == 2 ? "Logoff" :
u.Operation == 3 ? "AGNS Connect" :
u.Operation == 4 ? "AGNS Disconnect" :
"None"
};
GridView1.DataSource = query1;
GridView1.DataBind();
After databinding with gridview I wanted to add the result set "query1" into dataset or datatable.Can anyone give me any idea how to do it?
I saw another post here with same problem but that answer did not work in mine...
*Note: I am using VS 2008 *