DataGrid cell customization

Editors for WPF Forum

Posted 14 years ago by David Freer
Version: 9.1.0507
Avatar
Within a DataGrid, is it possible to

1) disable a single cell
2) provide different formats for individual cells within a column (assuming a DoubleEditBox is used for the column type). For instance, some cells require more precision (F2, F3, etc) than others depending upon the row in which they reside.

Thanks in advance

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi David,

In general, both the items you list above are possible yes. But how to go about accomplishing them depends largely on where the "state" (i.e. if a cell is enabled or not) is coming from.

In either case, you would probably have to create a class that derives from our columns and adds additional properties. For example, you could create MyDataGridDoubleColumn which derives from our DataGridDoubleColumn. You could then override the ApplyStandardValues method to bind the IsEnabled or Format properties to something.


Actipro Software Support

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.