Hello,
I am using Visual .NET WInForms in C#
I actually have a problem with column of datagrid.
I just would change the size (width) of my column
I tried lot of things with tablestyles and posted on another forum, but nothing works !
This is my code, and it dont works ... does someone know why ?
DataGridTableStyle TSAuthors = new DataGridTableStyle();
TSAuthors.MappingName = "ds";
DataGridColumnStyle TCFirstName = new DataGridTextBoxColumn();
TCFirstName.MappingName = " AV_FName";
TCFirstName.HeaderText = "First Name";
TCFirstName.Width = 500;
TSAuthors.GridColumnStyles.Add(TCFirstName);
dataGrid1.TableStyles.Add(TSAuthors);
dataGrid1.Update();
I am using Visual .NET WInForms in C#
I actually have a problem with column of datagrid.
I just would change the size (width) of my column
I tried lot of things with tablestyles and posted on another forum, but nothing works !
This is my code, and it dont works ... does someone know why ?
DataGridTableStyle TSAuthors = new DataGridTableStyle();
TSAuthors.MappingName = "ds";
DataGridColumnStyle TCFirstName = new DataGridTextBoxColumn();
TCFirstName.MappingName = " AV_FName";
TCFirstName.HeaderText = "First Name";
TCFirstName.Width = 500;
TSAuthors.GridColumnStyles.Add(TCFirstName);
dataGrid1.TableStyles.Add(TSAuthors);
dataGrid1.Update();