Column width of a DataGrid in a Windows Mobile Application

前端 未结 2 1315
余生分开走
余生分开走 2021-01-12 11:04

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

2条回答
  •  时光说笑
    2021-01-12 11:48

    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.

提交回复
热议问题