Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to make a grid cell read-only and change its background color

$
0
0

This example demonstrates how to disable editing of a grid column based on a value in another column. A disabled cell's appearance is customized to distinguish it from editable cells.

See Also:
How to customize the Look-And-Feel of my grid cells

Question Comments

Added By: Randy Baker at: 12/16/2015 7:34:26 AM    

That is not a "read-only" cell, but a disabled cell.

A GridView or column set to read-only still allows a cell editor to be invoked but does not allow changes to the value (e.g. you can still copy cell value to clipboard, etc.)

Added By: Nadezhda (DevExpress Support) at: 12/16/2015 1:44:56 PM    

Hello Randy,

Yes, you are right. Please clarify if you need to copy the cell value when the cell is disabled. I am looking forward to your response.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>