DataGrid - showing 'null'

  • Thread starter Thread starter Chankama
  • Start date Start date
C

Chankama

Hi. Is there a way to make a datagrid display the word "Null" (or something
similar to that effect - as long as its not just a blank) in the
corresponding cell whenever the data value of particular (row, column) is
set to null?.. There is no guarantee that the "type" of the column is a
string. Is there a setting in DataGrid where I can make this happen?..
Thanks.

Chankama
 
Add a DataGridTableStyle to your grid. Then in the DataGridColumnStyle for
the column in question, set its NilLText property to whatever you want.

-JG
 
Back
Top