Note that there are some explanatory texts on larger screens.

plurals
  1. PODataGridView playing stubborn. It just wouldn't bind
    primarykey
    data
    text
    <p>I have one stubborn data grid view is refusing to display the bound data. i placed a grid view named exhibitgridview and set its datasource to none. then i added a standalone data source that can return columns into the grid but first there data displayed in the grid would be based on a what gets selected from a dropdown list. check it out from the picture below. <img src="https://i.stack.imgur.com/6vrFB.jpg" alt="alt text"></p> <p>So basically some item is selected from the dropdown list next to the caseid label and the grid displays values accordingly... AS such i needed a selectedIndexchanged method so i had this in my page.cs</p> <pre><code>protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { CreateDataSet(); caseID = DropDownList1.SelectedItem.Value.Trim(); DataView exhibitDataView = new DataView(exhibitDataSet.Tables[0]); exhibitDataView.RowFilter = "FilingID = '" + caseID + "' "; ExhibitGridView.DataSource = exhibitDataView; ExhibitGridView.DataBind(); } private void CreateDataSet() { exhibitConnection.ConnectionString = ExhibitListSqlDataSource.ConnectionString; exhibitSqlDataAdapter.SelectCommand = new SqlCommand(ExhibitListSqlDataSource.SelectCommand, exhibitConnection); exhibitSqlDataAdapter.Fill(exhibitDataSet); } </code></pre> <p>The code runs sweet...I inserted a breakpoint as to ensure some data is actually returned for binding and there is...you can see that from the screen shot below: <img src="https://i.stack.imgur.com/5BfQV.jpg" alt="alt text"></p> <p>that was until (ExhibitGridView.DataBind()). So when i run the next block, i expect the data to bind and display in the browser but for some unknown reason the gridview is acting stubborn. i tried specifying the datasource directly and it displays successfully at pageload but otherwise it wouldn't respond.</p> <p>What could be the cause?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload