如何将datagridview限制为两行 [英] how to limitise datagridview to two rows

查看:131
本文介绍了如何将datagridview限制为两行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,
我有绑定到某些数据集的datagridview.您能否指导我,datagrid视图中是否有任何属性可将行数固定为两.
问候

Hi Folks,
I have a datagridview that is bound to some dataset. Can you please guide me is there any property in datagrid view to fix the number of rows to two.
Regards

推荐答案

为什么不将数据集的前两行提取到另一个数据集中,并绑定到第二个数据集?
Why don''t you extract the top two rows of your dataset into another dataset, and bind to thae second dataset?


这篇关于如何将datagridview限制为两行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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