Hi
I have a Dataset which contain one tabel and fields are EmpName,Address, City
I have applied DataView filter on City and displing data on Gridview but i dont want show City coulumn and its data in Gridview
In DataSet
EmpName Address City
AAA BBB Pune
AAA BBB Pune
AAA BBB Pune
AAA BBB Pune
and i want to show data into gridview like
EmpName Address
AAA BBB
AAA BBB
AAA BBB
AAA BBB
Please help me how can i do this
Regards
Sameer Shaikh

sameer shaikh181 reputationPosted Jun 4, 2017, 9:03 PM EDT
Karthi KeyanRank #1,926 · 762 reputationPosted May 30, 2017, 3:57 AM EDT
Vivek KumarRank #272 · 9.3K reputationPosted May 30, 2017, 12:32 PM EDT
sameer shaikh181 reputationPosted Jun 2, 2017, 12:47 AM EDT
sameer shaikh181 reputationPosted Jun 2, 2017, 12:49 AM EDT
Karthi KeyanRank #1,926 · 762 reputationPosted Jun 2, 2017, 3:41 AM EDT
sameer shaikh181 reputationPosted Jun 4, 2017, 9:09 PM EDT
Jyoti JodhaRank #1,408 · 1.2K reputationPosted Jun 2, 2017, 1:06 AM EDT
public static DataTable GetGridDatasource(string database, string ordnum)using (OleDbConnection con = new OleDbConnection("PROVIDER=Microsoft.ACE.OLEDB.12.0;Data Source=" + database))cmd.CommandText = "select * from [Order] where order_num=[OrderNumber]";cmd.Parameters.AddWithValue("OrderNumber", ordnum);OleDbDataAdapter da = new OleDbDataAdapter(cmd);DataTable dt = new DataTable();return dt;