This is a migrated thread and some comments may be shown as answers.

ItemCreated and ItemDataBoun Cost 2 seconds(50 Items) when I Created a Column dynamic on server side in Page_Load event.

2 Answers 42 Views
Grid
This is a migrated thread and some comments may be shown as answers.
whui
Top achievements
Rank 1
whui asked on 12 Jan 2011, 04:05 AM
ItemCreated and ItemDataBoun Cost 2 seconds(50 Items) when I Created a Column dynamic on server side in Page_Load event.

2 Answers, 1 is accepted

Sort by
0
whui
Top achievements
Rank 1
answered on 12 Jan 2011, 06:09 AM
My Server code as following:

GridBoundColumn boundColumn = new GridBoundColumn();
 gridTableView.Columns.Add(boundColumn);
 
 boundColumn.DataField = col.Field;
 boundColumn.UniqueName = uniqueName;
 boundColumn.HeaderText = col.Name;
0
whui
Top achievements
Rank 1
answered on 13 Jan 2011, 04:00 AM
The reason is that I created a coloumn bound to a field which is not exist in the entity. 
thank you!
Tags
Grid
Asked by
whui
Top achievements
Rank 1
Answers by
whui
Top achievements
Rank 1
Share this question
or