DynamicData gridview control




    My application is developed in DynamicData Entityframework model.

    I am struggling to set column width of GridView.

    I am trying to create an attribute ColumWidth for each column of a database table to set width on gridview, something like this

    public partial class Table1 {


    public class Table1_MD{


    public object ID { get; set; }


    [ColumnWidth(20)]  }

    public object Name { get; set; }



    Here for “Name” I have set column width to 20 and I am able to get the value also. But where should I write code to set the width of this column “Name” to update the gridview.

    2012년 4월 13일 금요일 오전 6:11