My request:
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 binding the data with gridview, I wanted to add the result set "query1" to the dataset or datatable. Can someone give me any idea how to do this?
I saw another entry with the same problem, but this answer did not work in my ...
** Note: I am using VS 2008 **
DHARENI
source
share