In SQL we can write a query like select * from table_name here we dont specify any column names in
mycase depending upon user the number of column should vary so that i expect without specifying column name and select all columns from the xml file. Or Specifying the column dynamically that is add all column names to a string variable and execute this
string query by LINQ
But before you said you want to remove some columns which you dont need In Select * query every column will come so without column name you cannot do that
Only way I can suggest is Hide the Column in teh GridView you dont want
mudassarkhan
All-Star
78956 Points
13402 Posts
MVP
Re: bind records to datagridview using LINQ?
Jan 28, 2009 03:51 AM|LINK
But before you said you want to remove some columns which you dont need In Select * query every column will come so without column name you cannot do that
Only way I can suggest is Hide the Column in teh GridView you dont want
I think this shud solve ur issue
Let me know if you want to doContact me