NAV 2009 の Web サービスを介して取得したデータのフィルター可能なデータ ビューを作成しようとしています。
Windows フォームを作成し、NAV ページから重要なデータを取得し、配列を作成して、Web サービスを使用して dataGridView に表示しました。
今必要なのは、dataGridView にあるデータを行ごとにフィルター処理することです。
私のコードは
private void LoadDataGrid()
{
WS_GLEntry_Service GLEntryService = new WS_GLEntry_Service();
GLEntryService.UseDefaultCredentials = true;
WS_GLEntry[] Entries = GLEntryService.ReadMultiple(null,null,0);
dataGridView1.DataSource = Entries;
(dataGridViewFields.DataSource as DataTable).DefaultView.RowFilter = string.Format("Field = '{0}'", textBox1.Text);
}
しかし、dataGridViewFields を含むコードの最後の行はコンテキストに含まれていません。コーディングを変更したい場合、どうすればよいですか?
ありがとうございました。