本文介绍了如何在Dynamic Gridview中添加Button?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
GridView gv = new GridView();
gv.ID = "gv" + dtdcno.Rows[i]["dcno"].ToString();
gv.Width = 600;
Label lblTotal = new Label();
Label lblwt = new Label();
BoundField Branch = new BoundField();
Branch.HeaderText = "Branch";
Branch.DataField = "branch";
gv.Columns.Add(Branch);
BoundField mortality1 = new BoundField();
mortality1.HeaderText = "Mortality";
mortality1.DataField = "mortality";
gv.Columns.Add(mortality1);
i试图添加TemplateField。但我没有得到确切的...我如何添加模板字段与一个按钮喜欢动态gridview中的'确认'。请帮助我
i tried to add TemplateField.but i am not getting exactly... how can i add template field with one Button like 'Confirm' in Dynamic gridview.please help me
推荐答案
这篇关于如何在Dynamic Gridview中添加Button?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!