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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SFGrid Empty Space under grid

Thread ID:

Created:

Updated:

Platform:

Replies:

148000 Oct 1,2019 12:49 PM UTC Oct 7,2019 05:37 AM UTC Xamarin.Forms 3
loading
Tags: SfDataGrid
Maria
Asked On October 1, 2019 12:49 PM UTC

Hi,

is there any workaround or fix to remove the white space under the datagrid like in sflistview? Its the same thing like in this post, with grid: https://www.syncfusion.com/forums/140956/sflistview-displays-empty-space-under-the-last-item

Thanks!

Maria

Balasubramani Sundaram [Syncfusion]
Replied On October 2, 2019 07:43 PM UTC

Hi Maria,  
 
Thank you for contacting Syncfusion support.   
 
Based on the provided information, your requirement to remove the blank space from the data grid it can be achieved by setting the “ExtendHeight” value to the data grid height to remove the blank space.  
 
Note: DataGrid will load for the minimum height and width of 300 * 300 only, if we set the height or width value less then minimum value data grid didn’t respond,  in that cause we have to set the minimum height request value for data grid to zero. 
 
Please refer the below code snippet and sample, 
 
Code snippet  
[MainPage.Xaml] 
<StackLayout> 
    <Grid> 
        <dataGrid:SfDataGrid 
                AutoGenerateColumns="True" 
                ItemsSource="{Binding OrdersInfo}" 
                x:Name="_dataGrid" 
                MinimumHeightRequest="0" 
                ColumnSizer="Star" 
                > 
            <dataGrid:SfDataGrid.Behaviors> 
                <local:DataGridBehavior BindingContext="{x:Reference _viewModel}"/> 
            </dataGrid:SfDataGrid.Behaviors> 
        </dataGrid:SfDataGrid> 
    </Grid> 
    <Button Text="Click Me"></Button> 
</StackLayout> 
 
 
 
We hope this helps. Please let us know if you need any further assistance. 
 
Regards, 
Balasubramani Sundaram. 


Maria
Replied On October 4, 2019 12:34 PM UTC

super, it works :) 

Thank you!

Farjana Parveen Ayubb [Syncfusion]
Replied On October 7, 2019 05:37 AM UTC

Hi Maria 
 
Thanks for the update. 
 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
 
Regards, 
Farjana Parveen A 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon