C++ /CLI padding of DataGridView DefaultCellStyle
C++ /CLI padding of DataGridView DefaultCellStyle
我想在CellMouseEnter
事件上更改我的cellpadding
。我觉得这会很简单。
System::Void dgv_CellMouseEnter(System::Object^ sender,
System::Windows::Forms::DataGridViewCellEventArgs^ e) {
dgv->Rows[e->RowIndex]->DefaultCellStyle->Padding =gcnew
System::Windows::Forms::Padding(5);
}
但我收到一个错误
funktion "System::Windows::Forms::DataGridViewCellStyle::Padding::set" cannot
be called with the given argument list. Argument types are:
(System::Windows::Forms::Padding ^)
object type is :System::Windows::Forms::DataGridViewCellStyle^
填充属性(集(不接受指针类型。
尝试删除gcnew
(正在工作(。
dgv->Rows[e->RowIndex]->DefaultCellStyle->Padding = System::Windows::Forms::Padding(5);
相关文章:
- 更新了Runge-Kutta(RK4)C++错误代码中的二阶DE
- C++ /CLI padding of DataGridView DefaultCellStyle
- CLI/C++dataGridView示例-设置comobox单元格列表的索引
- de if-Block 是什么意思
- 用 C/C++ 中的值填充 DataGridView 组合框
- 从相同纹理的撰写和读取OpenGL上的迭代de Solver
- 堆上的多线程(DE)分配
- 如何便移(de)序列化qint32
- (De/)序列化作为C++中基于文件的数据交换的接口
- C++ (de) 序列化项的向量顺序
- 如何从DataGridView填充datarow->ItemArray?
- DataGridView Class - Errors()
- 正在将DataGridView中的值获取到2D数组中
- 添加新的行datagridview
- 将数据集的数据表绑定到 DataGridView
- 升压DE-9-IM结构是否可用
- 从MySQL数据库中的选定Datagridview中删除行时出现问题
- 如何使用 def 文件在 de dll 中使用 mfc
- 访问dataGridView列中的组合框
- 获取datagridview组合框的选定项的索引