DevExpress控件使用总结(不断更新中)
2018-03-12 18:40
417 查看
数据绑定
数据有两列,第一列为序号,int型,第二列为数据路径,string型。
如何清空gridview
class RowDataRecord { public RowDataRecord(int n_id, string xmlpath) { n_id_ = n_id; xmlpath_ = xmlpath; } //!编号 public int n_id_ { get; set; } //!路径 public string xmlpath_ { get; set; } }
public void InitialDialog() { ///影像列表更新 studentList = new List<RowDataRecord>(); this.grid_control_.DataSource = studentList; this.grid_control_.RefreshDataSource(); }
数据有两列,第一列为序号,int型,第二列为数据路径,string型。
如何清空gridview
private void DeleteClear(object sender, EventArgs e) { this.gridView1.SelectAll();///选中所有行 this.gridView1.DeleteSelectedRows();///清空所有行 this.gridControl1.RefreshDataSource();///绑定数据刷新 }
相关文章推荐
- Codeigniter 以及 javascript 等使用总结(不断更新)
- CentOS使用总结(不断更新)
- DevExpress:XtraGrid里面的GridControl控件使用总结
- DevExpress控件使用经验总结
- 转载:DevExpress控件使用经验总结
- zabbix安装使用总结(不断更新中)
- 总结一些使用visual studio的tips(不断更新)
- DevExpress控件使用经验总结【转载】
- DevExpress控件GridControl使用总结一
- DevExpress控件使用经验总结- GridView列表行号显示操作
- javascript使用技巧总结,不断更新...
- ListView控件使用技巧汇总(不断更新)
- 【LaTeX】Yap的使用总结-不断更新
- 【JSP】JSTL使用core标签总结(不断更新中)
- DevExpress控件使用经验总结
- DevExpress控件使用经验总结
- git 使用经验与技巧总结 (不断更新中)
- DevExpress控件使用经验总结
- 使用用户控件遇到的小问题,不断更新
- Excel使用总结[不断更新]