我是靠谱客的博主 合适西装,这篇文章主要介绍checkbox wpf 绑定数组_在wpf中绑定checkbox | 学步园,现在分享给大家,希望可以做个参考。

private void InitSourceType()

{

string sQuery = string.Format("SELECT sourtype,seqnumbr FROM CRSOURTYPE ORDER BY seqnumbr");

DataSet dset = gs.GetDataBySql(sQuery);

if (dset != null && dset.Tables[0].Rows.Count > 0)

{

this.cboSourceType.ItemsSource = dset.Tables[0].DefaultView;

this.cboSourceType.SelectedValuePath = "sourtype";

this.cboSourceType.DisplayMemberPath = "sourtype";

}

}

///

/// 根据传入SQL语句取数据

///

///

///

public DataSet GetDataBySql(string sCommand)

{

try

{

DBOperator db = GetDBOperator(DBName);

return db.ExecuteQuery(sCommand);

}

catch (Exception e)

{

throw new Exception(e.Message);

}

}

最后

以上就是合适西装最近收集整理的关于checkbox wpf 绑定数组_在wpf中绑定checkbox | 学步园的全部内容,更多相关checkbox内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(125)

评论列表共有 0 条评论

立即
投稿
返回
顶部