I need to do some post-processing on a silverlight datagrid once all the rows are. I don't see any events that fire once that's done; what am I missing?
Code samples or links are greatly appreciated.
I need to do some post-processing on a silverlight datagrid once all the rows are. I don't see any events that fire once that's done; what am I missing?
Code samples or links are greatly appreciated.
I found the following solution. It's untested, but given that the question was exactly the same as yours, it should work.
dataGrid.LoadingRow += new EventHandler(dataGrid_LoadingRow);
void dataGrid_LoadingRow(object sender, DataGridRowEventArgs e)
{
dataGrid.LoadingRow -= new EventHandler(dataGrid_LoadingRow);
this.Dispatcher.BeginInvoke(delegate
{
/*Process My Logic*/
});
}
(Source: yifung @ Silverlight Forums)
Why would you need that? AFAIK you'll get control back when the grid is populated and the binding is complete.
myGrid.ItemsSource = myObservableCollection;
// here everything is loaded