2012年2月13日

DataGridView控件使用笔记

摘要: 1、怎么获得当前选中行?例程:private: System::Void dataGridView1_CellClick(System::Object^ sender, System::Windows::Forms::DataGridViewCellEventArgs^ e) { int y=e->RowIndex; ...... }这是c++.net里面的类的成员函数,通过DataGridViewCellEventArgs^ e可以获得当前选中的行index。2、怎样使DataGridView里显示的数据充满整个表格可以通过设置列或者行的宽度来实现,我在函数是这样设置的 this-&g 阅读全文

posted @ 2012-02-13 16:24 博远小记 阅读(234) 评论(0) 推荐(0)

导航