I am trying to add some styles to my datagrid such as header text, width etc ... Every time I add something like that:
DataGridTextBoxColumn txtName = new DataGridTextBoxColumn();
txtName.HeaderText = "Name";
txtName.MappingName = "CompName";
txtName.Width = 150;
After I add that piece of code no data is displayed in my datagrid. can anyone help?