L
lodzik
Hi,
I can't make this style visible. I'm new in coding but I readed every
post about that and have still problem.
My code looks like this:
DataGridTableStyle myGridStyle = new DataGridTableStyle();
myGridStyle.MappingName = "lineBindingSource";
DataGridTextBoxColumn idColumn = new DataGridTextBoxColumn();
idColumn.MappingName = "ID";
idColumn.HeaderText = "Test";
idColumn.Width = 240;
myGridStyle.GridColumnStyles.Add(idColumn);
dataGrid1.TableStyles.Add(myGridStyle);
Any idea what is wrong?
I can't make this style visible. I'm new in coding but I readed every
post about that and have still problem.
My code looks like this:
DataGridTableStyle myGridStyle = new DataGridTableStyle();
myGridStyle.MappingName = "lineBindingSource";
DataGridTextBoxColumn idColumn = new DataGridTextBoxColumn();
idColumn.MappingName = "ID";
idColumn.HeaderText = "Test";
idColumn.Width = 240;
myGridStyle.GridColumnStyles.Add(idColumn);
dataGrid1.TableStyles.Add(myGridStyle);
Any idea what is wrong?