Rupert

::Me(C#,VC,MonoTouch,MonoforAndroid);

导航

上一页 1 ··· 93 94 95 96 97 98 99 100 101 ··· 108 下一页

2012年8月31日

摘要: 一、网络上的一般说法1、ViewState 对象为Null。2、DateSet 空。3、sql语句或Datebase的原因导致DataReader空。4、声明字符串变量时未赋空值就应用变量。5、未用new初始化对象。6、Session对象为空。7、对控件赋文本值时,值不存在。8、使用Request.QueryString()时,所获取的对象不存在,或在值为空时未赋初始值。9、使用FindControl时,控件不存在却没有做预处理。10、重复定义造成未将对象引用设置到对象的实例错误.二、 (1)所设置的变量为空值或没有取到值,一般出现在传递参数的时候出现这个问题,也会在使用DataGrid或gr 阅读全文

posted @ 2012-08-31 16:03 ArRan 阅读(283) 评论(0) 推荐(0) 编辑

2012年8月29日

摘要: http://download.csdn.net/detail/lanweiqiang/4357932privateintcomboBoxColumnIndex=0;//DataGridView的首列publicForm1(){InitializeComponent();InitComboBoxValues();this.dataGridView1.Controls.Add(this.comboBox1);this.dataGridView1.CellEnter+=newDataGridViewCellEventHandler(dataGridView1_CellEnter);this.dat 阅读全文

posted @ 2012-08-29 18:44 ArRan 阅读(815) 评论(0) 推荐(0) 编辑

2012年8月25日

摘要: 导读: 当前单元格指的是 DataGridView 焦点所在的单元格,它可以通过 DataGridView 对象的 CurrentCell 属性取得。如果当前单元格不存在的时候,返回Nothing(C#是null) // 取得当前单元格内容 Console.WriteLine(DataGridView1.CurrentCell.Value);// 取得当前单元格的列 Index Console.WriteLine(DataGridView1.CurrentCell.ColumnIndex);// 取得当前单元格的行 Index Console.WriteLine(DataGridVi... 阅读全文

posted @ 2012-08-25 12:57 ArRan 阅读(546) 评论(0) 推荐(0) 编辑

上一页 1 ··· 93 94 95 96 97 98 99 100 101 ··· 108 下一页