public MainPage()
{
InitializeComponent();
dataGrid.ItemsSourceChanged += DataGrid_ItemsSourceChanged;
}
private void DataGrid_ItemsSourceChanged(object sender, GridItemsSourceChangedEventArgs e)
{
//// You can do required process here.
} |
[C#]
public partial class MainPage : ContentPage
{
SfBusyIndicator indicator;
public MainPage()
{
InitializeComponent();
indicator = new SfBusyIndicator();
dataGrid.GridLoaded += DataGrid_GridLoaded;
}
private async void DataGrid_GridLoaded(object sender, GridLoadedEventArgs e)
{
//// customize based on the requirement.
indicator.IsBusy = true;
indicator.IsVisible = true;
indicator.AnimationType = AnimationTypes.SlicedCircle;
grid.Children.Add(indicator);
await Task.Delay(2000);
indicator.IsBusy = false;
indicator.IsVisible = false;
}
} |