Binding Gridview.

vishalneeraj-24503
Posted by vishalneeraj-24503 under LINQ category on | Points: 40 | Views : 477
var query =  from p in Project_Master
where p.Project_Id == project_id //here,project_id is a column
orderby p.Project_Name ascending
select new { p.Project_Id, p.Project_Name, p.Employee_Id, p.Budget,p.Start_date,p.End_date };

grid_project_details.DataSource = query.ToList();
grid_project_details.DataBind();

Comments or Responses

Login to post response