您的位置:程序门 -> .net技术 -> c#



问:datagrid(window) 里添加一个datagridboolcolumn    可是字段除了id 其他都是随机的


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


问:datagrid(window) 里添加一个datagridboolcolumn 可是字段除了id 其他都是随机的
发表于:2007-05-16 20:44:48 楼主
dgdata.setdatabinding(uniteds.tables[0],uniteds.tables[0].tablename);  
//以下为修饰datagrid的风格      

datagridtablestyle       ts1       =       new       datagridtablestyle();      
ts1.mappingname       =uniteds.tables[0].tablename;      
                                         
datagridboolcolumn       checkboxcol       =       new       datagridboolcolumn();      
checkboxcol.headertext       =       "选择记录 ";      
checkboxcol.mappingname       =       "id ";      
checkboxcol.allownull=true;      
ts1.gridcolumnstyles.add(checkboxcol);    

dgdata.tablestyles.add(ts1);
发表于:2007-05-16 21:59:281楼 得分:0
我的是意思     添加一列复选框   但其他字段未知(从数据库随机读的)
    请问怎么实现?


快速检索

最新资讯
热门点击