I am not to display the datagrid on my page

I have binded a collection of customers to data grid and added it on the storyboard. But the data grid is not displaying.
Please help me out on this.

1 Reply

DY Deivaselvan Y Syncfusion Team August 29, 2018 05:59 PM UTC

Hi Deepa,

SfDataGrid can be displayed using the storyboard in Xamarin.iOS. Refer the below code for more details.

ViewController class: 
 
  public override void ViewDidLayoutSubviews() 
        { 
            base.ViewDidLayoutSubviews(); 
            OrderInfoRepository viewModel = new OrderInfoRepository(); 
            dataGrid.ItemsSource = viewModel.OrderInfoCollection; 
        } 
 

We have prepared a sample based on your requirement and you can download it from the below link. Try running this sample and let us know if this helps you.

http://www.syncfusion.com/downloads/support/directtrac/211885/ze/SfDataGridStoryBoard-1578198360

Regards,
Deivaselvan 


Loader.
Up arrow icon