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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

BorderView IsVisable property in DataGrid Xamarin Forms

Thread ID:

Created:

Updated:

Platform:

Replies:

128198 Jan 7,2017 09:25 AM UTC Jan 10,2017 07:19 AM UTC Xamarin.Forms 3
loading
Tags: SfDataGrid
Russ Fustino
Asked On January 7, 2017 09:25 AM UTC

Is it possible to remove the cell and column borders from on a datagrid thru a XAML setting in Xamarin Forms? Ie set a visible property or width on these lines to 0?

Divakar Subramaniam [Syncfusion]
Replied On January 9, 2017 07:22 AM UTC

Hi Russ, 
 
 
Thanks for contacting Syncfusion Support. 
 
 
We have checked your query. You can able to hide the cell and column borders in SfDataGrid by override SfDataGrid.DataGridStyle class and return GridLineVisibility as None in GetGridLinesVisibilty() override and assign the overridden class to SfDataGrid.GridStyle property. Please refer the below code snippet for better understand. 
 
//Xaml 
<sfGrid:SfDataGrid x:Name="dataGrid" 
                   AutoGenerateColumns="False" 
                   GridStyle="{local:CustomGridStyle}"> 
 
//CustomGridStyle class 
public class CustomGridStyle : DataGridStyle 
{ 
    public override GridLinesVisibility GetGridLinesVisibility() 
    { 
        return GridLinesVisibility.None; 
    } 
} 
   
 
Also, we have prepared a simple sample by achieved your requirement and you can download the same from the below link. 
 
 
 
Regards, 
Divakar. 


Russ Fustino
Replied On January 10, 2017 07:13 AM UTC

Thanks! Much appreciated. Love the Zip too!

Ashok N [Syncfusion]
Replied On January 10, 2017 07:19 AM UTC

Hi Russ,  

Thanks for your update. Please let us know if you require further assistance on this. 

Regards, 
Ashok

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.

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

;