I need to disable a row in a Silverlight datagrid when that row is being refreshed from the database.
This 'pseudo code' of course doesn't work, but I can't find a way in Silverlight 4 to do this.
With WPF there's triggers but I can't use those in Silverlight. If I just wanted to set the background that is easy with an IValueConverter - but that won't work for my RefreshPending
as I need it to be refreshed in realtime as the database call returns.
<data:DataGrid.RowStyle>
<Style TargetType="data:DataGridRow">
<Setter Property="IsEnabled" Value="{Binding RefreshPending}" />
</Style>
</data:DataGrid.RowStyle>
Only way I can see to do it is to set IsEnabled
for the content of every column. So I can do that if I have to - its just a little klunky and I'd like to understand if its possible to do it another way.