Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
How to Convert Linq Query into DataTable
Faisal Ansari
Apr 6 2011 1:48 AM
8.8k
Reply
hello guys once again.
i have an problem in this code i wanna cast linq query into datatable but its giving error..
My Code is below:
var searchData = from search in context.PersonInformations
where search.p_ID == Convert.ToInt32(txtPId.Text)
select search;
DataTable dt = ((DataTable)searchData);
Reply Soon ...
Thanks .
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
problem with Datagrid view control in C#
I need help in coding for turbo c++ in my assignment.