DynamicData gridview control
-
2012년 4월 13일 금요일 오전 6:11
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 thispublic 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.
- 편집됨 Balaji.soundar 2012년 4월 13일 금요일 오전 6:14
- 편집됨 Balaji.soundar 2012년 4월 13일 금요일 오전 6:18
모든 응답
-
2012년 4월 13일 금요일 오전 9:41
Hello,
you can use BoundField...........
http://stackoverflow.com/questions/934773/unable-to-change-the-gridview-column-width-programatically
http://geekswithblogs.net/michelotti/archive/2006/03/30/73896.aspx
http://forums.asp.net/t/1213513.aspx
Regards,
Tarun singh Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights
- 편집됨 Tarun00007 2012년 4월 13일 금요일 오전 9:44
- 답변으로 제안됨 ParthPatel 2012년 4월 13일 금요일 오후 12:33
- 답변으로 표시됨 Bob ShenMicrosoft Contingent Staff, Moderator 2012년 4월 25일 수요일 오전 3:26

