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.
Unfortunately, activation email could not send to your email. Please try again.

Problems with GridCellNumericRenderer

Thread ID:





128142 Jan 4,2017 11:44 AM Jan 5,2017 01:30 PM WPF 2
Tags: SfDataGrid
Harald Betzler
Asked On January 4, 2017 11:44 AM


I've a SfDataGrid with a Itemsource with five column pairs "Value01" & "Value01ReadOnly", "Value02" & "Value02ReadOnly", ...

Each "Value" column should be disabled (and have another background color) when its corresponding "ReadOnly" column contains "true".

I've tried to reach this with a customized GridCelNumericRenderer. But there were some problems.
  • The "ReadOnly" cells are not really read only. They can be entered and edited.
  • After scrolling down and up, the "ReadOnly" cells are "moving".
  • The "ReadOnly" formatting is only applyed to the TextBlock and not to the entire cell.
Please check the attached sample application, to see the problems.


Attachment: SfGridSample13_b59470b2.zip

Harald Betzler
Replied On January 4, 2017 12:57 PM

  • When scrolling down, the GridCellNumericRenderer will never called. The "ReadOnly" formatted cells there are only "a copy of the first cells" but do not match to the "ReadOnly" information in the corresponding column.

Jai Ganesh S [Syncfusion]
Replied On January 5, 2017 01:30 PM

Hi Harald, 
We have analyzed your query with your sample. In that you have displayed the disabled cells through OnInitializeDisplayElement of GridCellNumericRenderer and also you have applied the disabled style for TextBlock not GridCell. Hence the issues occurred. However, you can achieve this requirement by using CellTempateSelector and  CurrentCelBeginEdit event. We have already prepared a sample for this in the forums #128088, #127476.  
Jai Ganesh S 


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.

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.