I\'m having problems trying to adjust the width of a column of a datagrid. I used the answer posted here, but I can\'t solve it.
I\'m using a List of objects as a da
For anyone using a DataTable as the DataSource instead of a list, it appears you have to change:
tableStyle.MappingName = lista.GetType().Name;
to:
tableStyle.MappingName = lista.TableName;
Took me a while to figure this out!
Change this line
tableStyle.MappingName = lista.GetType().ToString();
to
tableStyle.MappingName = lista.GetType().Name;
Oh, and 4000 is a little big for a mobile but I assume that's a typo.