1
Answer

a question re:a simple datagrid..

S4E

S4E

20y
2.3k
1
If I wanted to create a simple datagrid which has 2 columns: a readonly column, and a writeable 'text' only column Are there several ways to do this? I'm wondering if what I did was overkill? What I did was: DataGridTableStyle dgts = new DataGridTableStyle(); dgts.MappingName = "data_table_name"; DataGridTextBoxColumn dgcs = new DataGridTextBoxColumn(); dgcs.MappingName = "Property"; dgcs.ReadOnly = true; dgts.GridColumnStyles.Add(dgcs); dgcs = new DataGridTextBoxColumn(); dgcs.MappingName = "Value"; dgts.GridColumnStyles.Add(dgcs); this.dataGrid1.TableStyles.Add(dgts);

Answers (1)
Next Recommended Forum