DataGrid - showing 'null'

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
 
J

Juan Gabriel Del Cid

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

-JG
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top