Data set Filter
-
Hi All, I am using Data set to get value from the data base using following code.
DataSet ds = new DataSet();
String connectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();
MySqlDataAdapter mySqlDataAdapter = new MySqlDataAdapter(query, connectionString);
mySqlDataAdapter.Fill(ds);once i get this i want filter with another query how to add do this. Thanks, Amit
-
Hi All, I am using Data set to get value from the data base using following code.
DataSet ds = new DataSet();
String connectionString = ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();
MySqlDataAdapter mySqlDataAdapter = new MySqlDataAdapter(query, connectionString);
mySqlDataAdapter.Fill(ds);once i get this i want filter with another query how to add do this. Thanks, Amit
-
You can either filter with a SQL query or use datatable's 'Select' method like DataRow[] dr=ds.Tables[0].Select("id="+yourid);
-