none
DynamicData gridview control

    질문

  •  

    Hi,

    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 {

    [DisplayName("Table")]

    public class Table1_MD{

    [DisplayName("ID")]

    public object ID { get; set; }

    [ColumnOrder(-100)]

    [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

답변