T
TJO
I have the following code on an button event on my page that attempts to
change a DataGrids DataSource to a DataView filter.. When the page renders
there is not affect and I feel real stupid about it. A little help here?
DataView filterView = new DataView(filingCabinetDataSet1.FilingCabinet);
filterView.RowFilter = "LocationID = " +
Convert.ToInt32(drp_locationfilter.SelectedValue);
filterView.Sort = "LetterCategory, FileTitle";
grid_FilingRecs.DataSource = filterView;
grid_FilingRecs.DataBind();
change a DataGrids DataSource to a DataView filter.. When the page renders
there is not affect and I feel real stupid about it. A little help here?
DataView filterView = new DataView(filingCabinetDataSet1.FilingCabinet);
filterView.RowFilter = "LocationID = " +
Convert.ToInt32(drp_locationfilter.SelectedValue);
filterView.Sort = "LetterCategory, FileTitle";
grid_FilingRecs.DataSource = filterView;
grid_FilingRecs.DataBind();