We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

The Header Row of the DataGrid is behind the View's Title Bar


I am using the DataGrid control and when I debug the application the Header Row is not visible because is behind of the View's Title Bar.

Image of the issue: DataGrid
Image's Link: https://postimg.org/image/pcqfz58up/

thank you!!

3 Replies

DS Divakar Subramaniam Syncfusion Team January 11, 2017 01:13 PM UTC

Hi Renato, 
Thanks for contacting Syncfusion Support. 
We have checked your query. If you add the title view and layout the SfDataGrid from top(dataGrid.Frame.Y = 0) in your controller, then the reported issue will occur. However, you can overcome this issue by layout the SfDataGrid after the title view is placed in the viewcontroller. Please refer the below code snippet for better understand. 
// In MyViewController.cs 
public override void ViewDidLayoutSubviews() 
    dataGrid.Frame = new CGRect(0,60,this.View.Frame.Width,this.View.Frame.Height); 
In the above case, we have set the SfDataGrid’s Y position as 60 in order to SfDataGrid layout after the title view. You can modify the Y value based on your requirement. 
We have attached a simple sample for your reference and you can download the same from the below link. 

RW Renato Wong January 11, 2017 04:50 PM UTC

That was it, thank you very much for the response.

DS Divakar Subramaniam Syncfusion Team January 12, 2017 04:24 AM UTC

Hi Renato, 
Thanks for the update. Please let us know if you need any other assistance from us. 

Live Chat Icon For mobile
Up arrow icon