解决方法:第一步:在GridView模板列中添加DropDownList并设置AutoPostback属性为true。 第二步:再在DropDownList的SelectedIndexChanged事件里写下面几句话。 DropDownList ddl = (DropDownList)sender; //得到当前的DropDownList GridViewRow gvr = (GridViewRow)ddl.NamingContainer; //获取对DropDownList的容器引用第三步://得到gvr后就好办了查找下面的子控件。 DropDownList ddl2 = (DropDown Read More
posted @ 2011-05-23 12:05 瑞君 Views(772) Comments(1) Diggs(1) Edit
SELECT 表名 = case when a.colorder=1 then d.name else '' end, 表说明 = case when a.colorder=1 then isnull(f.value,'') else '' end, 字段序号 = a.colorder, 字段名 = a.name, 标识 = case when COLUMNPROPERTY( a.id,a.name,'IsIdentity')=1 then '√'else '' end, 主键 = case whe Read More
posted @ 2011-05-23 12:00 瑞君 Views(170) Comments(0) Diggs(0) Edit