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

grid border

is it posible to remove the border from the  row grid or the cell , I havent found any sample about it

1 Reply

HN Harikrishnan N Syncfusion Team September 18, 2015 03:30 PM UTC

Hi Ricardo,

Thank you for using Syncfusion products.

It is possible to remove the borders from the grid rows and cells in the SfDataGrid. You can achieve it by writing a custom style for SfDataGrid. Please refer the below code example.



SfDataGrid dataGrid = new SfDataGrid();
dataGrid.GridStyle = new CustomStyle();

public class CustomStyle : DataGridStyle

{

    public CustomStyle()

    {


    }


    public override Color GetBorderColor()

    {

        return Color.Transparent;

    }
}


Please let us know if this helps.

Regards,
Harikrishnan


Loader.
Up arrow icon