datagridview中的继承问题 [英] problem with inheritance in datagridview

查看:64
本文介绍了datagridview中的继承问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Form(Form1)上有一个受保护的GridView,并以其他Form(Form2)继承了该表单.在继承的形式中,我可以修改属性吗?

I have a protected GridView on a Form(Form1), and inherited that form in other form(Form2). In inherited form, i can modify the properties?

推荐答案

似乎您在Form(例如Form1)上具有受保护的GridView,并以其他形式继承了该形式(例如Form2).在继承的形式中,您无法修改属性,这就是您的问题,对吧?

您可以在Form2或Form1本身的代码中以编程方式设置GridView选项.
It seems like you have a protected GridView on a Form(say Form1), and inherited that form in other form(say Form2). In inherited form, you cannot modify the properties, and that is your problem, right?

You can set the GridView options programatically in code in Form2, or in Form1 itself.


这篇关于datagridview中的继承问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆