BoldDeskWe are launching BoldDesk on Product Hunt soon.
Learn more & follow us.
DependencyObject obj = (DependencyObject)e.OriginalSource;
if (obj is DataGrid)
if ((obj as DataGrid).Items.Count == 0)
(obj as DataGrid).Visibility = Visibility.Collapsed;
if ((obj as Syncfusion.Windows.Controls.Grid.GridDataControl).Model.RowCount <= 1) //header is counted
(obj as Syncfusion.Windows.Controls.Grid.GridDataControl).Visibility = Visibility.Collapsed;
Thanks for you update,
You can also get the Rowcount by applying below code snippet.
int count = this.syncgrid.Model.RowCount;
Please let us know if you have any queries,