DataGrid ReadOnly and NullText do not work

A

aualias

I have the following code...

DataGridTableStyle ts = new DataGridTableStyle();
dgTest.TableStyles.Clear();

ts.MappingName = "Test";

DataGridTextBoxColumn col1 = new DataGridTextBoxColumn();
col1.MappingName = "something";
col1.HeaderText = "Something";
col1.ReadOnly = true;
col1.NullText = "xxyyzz"

ts.GridColumnStyles.Add(col1);

dgTest.TableStyles.Add(ts);

The column is not ReadOnly and NullText is "(null)".

What am I missing?

Thanks.

David
 

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