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
close icon

No border on the Cell selected

Hi,

I would like to have no borders on the selected cell in the DataGrid. I did not find the associated style to reach this objective.

In the attached capture, I would like to remove the border around the FRANCE cell (cell currently selected).

Can you give the right operation ?

Regards,

Attachment: Capture_10368d52.zip

3 Replies

AR Akila Rajaram Syncfusion Team May 11, 2015 06:52 AM UTC

Hi  Marquant ,

 

Thank you for using Syncfusion Products .

 

We analyzed your query. You can customize the border of current cell  by adjusting its thickness and there is no need to  customize style of GridCell  .The  CurrentCellBorderThickness property of SfDataGrid allows you to adjust thickness of current cell border based on your requirement. We have prepared a sample to achieve your requirement. Please find the sample  from the following location:

 

Sample : http://www.syncfusion.com/downloads/support/forum/119096/SfDataGrid_Demo-1709878965.zip

 

 

Please find the following code snippet :

 

XAML :

 

   <syncfusion:SfDataGrid   x:Name="grid"

                            AutoGenerateColumns="False"

                            AllowEditing="True"

                            ColumnSizer="Auto"

                            SelectionUnit="Row"

                            NavigationMode="Cell"

                            CurrentCellBorderThickness="0,0,0,0"

                            ItemsSource="{Binding OrderList}">

 

Please let us know if this solution helps you.

 

Regards,

Akila R.



MC MARQUANT Cédric May 11, 2015 08:58 AM UTC

Thanks Akila,

It's so easy ;) It's perfectly works !

Regards


SC Saranya CJ Syncfusion Team May 11, 2015 11:20 AM UTC

Hi Marquant,

Thank you for your update. We are glad to know the sample works at your end. Please let us know if you require any other assistance on this.

Regards,
Saranya

Loader.
Live Chat Icon For mobile
Up arrow icon