摘要:
以前得到DataSet的时候都是利用直接写sql语句(适合初学者) public static DataSet GetDs(string sqlstr) { ds = new DataSet(); sqlconn = new SqlConnection(); sqlconn.ConnectionString =... 阅读全文
posted @ 2013-03-26 19:20 Roger Luo 阅读(7798) 评论(0) 推荐(0)
|
|||
|
摘要:
以前得到DataSet的时候都是利用直接写sql语句(适合初学者) public static DataSet GetDs(string sqlstr) { ds = new DataSet(); sqlconn = new SqlConnection(); sqlconn.ConnectionString =... 阅读全文
posted @ 2013-03-26 19:20 Roger Luo 阅读(7798) 评论(0) 推荐(0)
摘要:
wstring to string string CUtility::TCHAR2char(TCHAR* tchStr){ int iLen = 2*wcslen(tchStr); char* chRtn = new char[iLen+1]; memset(chRtn, 0, iLen + 1); wcstombs(chRtn,tchStr,iLen+1); ... 阅读全文
posted @ 2013-03-26 14:59 Roger Luo 阅读(1485) 评论(0) 推荐(0)
摘要:
如何获取DataGridViewCheckBoxCell的值 方法1,需要给DATAGRIDVIEW控件添加事件CellContentClick,这里我将CHECKBOX放在数据列的第一个所以我判断参数中COLUMNINDEX是否为0,同时需要注意的是使用属性EditedFormattedValue,不能使用Value值,因为Value值是旧值。 private void dg... 阅读全文
posted @ 2013-03-26 12:48 Roger Luo 阅读(564) 评论(0) 推荐(0) |
|||