This question is locked. New answers and comments are not allowed.
I have a RadGrid (silverlight control) and a combobox on my xaml page. Based on what value I select in the combobox, WCF returns the data and I set it as the ItemSource of the RadGrid. I am using DataTable to bind the data to the grid.
Now everytime I change the selection on the combobox, I do get different datasource from the WCF service (dataset has different columns) and even the data is bound correctly on the UI. For the first time the data is bound, I do see a valid count in webGridView.Columns, however for subsequent databindings, the data seems nicely bound on the grid/UI but the count on webGridView.Columns is 0 and I cannot access each of the columns. Why does this happen and how do I fix it?
public partial class Report: Page { private DataTable resultData; . . void proxy_GetDataCompleted(object sender, EventArgs e) { resultData = new DataTable(e.Result); webGridView.ItemSource = resultData; } Now everytime I change the selection on the combobox, I do get different datasource from the WCF service (dataset has different columns) and even the data is bound correctly on the UI. For the first time the data is bound, I do see a valid count in webGridView.Columns, however for subsequent databindings, the data seems nicely bound on the grid/UI but the count on webGridView.Columns is 0 and I cannot access each of the columns. Why does this happen and how do I fix it?