开发者

Dynamically bind controls to the grid view in asp.NET

I just want to bind controls to the grid view but i want to do it dynamically.As an example i just want to enter students marks to text box to adjacent subjects??

thinks students are in row's and subjects are in columns and it similar to matrix in mathematics . but some times no of students and no of subjects are vary.

Therefore i have to bind it dynamically CAN ANY ONE HELP ME WI开发者_StackOverflow社区TH THIS


Use the RowDataBound event. You can add any control there.

CheckBox cb = new CheckBox();
cells[0].Controls.Add(cb);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜