DataSet
行数をカウントするC#を使用していますtextbox9
が、。をカウントするようにフィルター処理したいと思いStatus='Closed'
ます。SQLステートメントを使用してこれを行うことができますが、DataSet
すべてのデータを1つにまとめて、DataSet
代わりにそれをフィルター処理したいと思います。
MyCommand = new OleDbDataAdapter("SELECT * FROM [CR$]'", MyConnection);
DataSet dtSet = new System.Data.DataSet();
MyCommand.Fill(dtSet);
bindingSource1 = new BindingSource();
bindingSource1.DataSource = dtSet;
bindingSource1.DataMember = dtSet.Tables[0].TableName;
dataGridView1.DataSource = bindingSource1;
textBox9.Text = dtSet.Tables[0].Select("Status='Closed'");