如何在RowCount - 1创建冻结的datagridview [英] How can i create frozen datagridview at RowCount - 1

查看:92
本文介绍了如何在RowCount - 1创建冻结的datagridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在DataGridview底部创建了一行Total,我想修复此行总是在DataGridView中显示。



我可以将此行冻结(位置: RowCount - 1)当DataGridView有滚动时出错了吗?



有没有人有其他办法可以一直这一行?







非常感谢

I have create an row Total at bottom DataGridview and I would like to fix this Row always show in DataGridView.

Can I frozen this this Row (position: RowCount - 1) out of bug when DataGridView have Scrolls?

Has Anyone got other way to always this row?



Thanks a lot

推荐答案

看看摘要DataGridView [ ^ ],从代码项目开始。



它看起来像你想要的那样,但即使它不合适它可能会给你一些想法。



祝你好运! :)
Take a look at Summary DataGridView[^], from here on Code Project.

It appears to do what you want but even if it is not suitable it may give you some ideas.

Good luck! :)


最明显的方法是更改​​数据源并删除最后一行。或者,如果您的意思是在滚动时始终显示一行,请将其从数据源中删除,然后在网格下显示。网格不支持这种行为。
The most obvious way to do this, is to change your data souce and remove the last row. Or, if you mean leave a row always visible as you scroll, remove it from the data source and then show it under the grid. The grid does not support that sort of behaviour.


这篇关于如何在RowCount - 1创建冻结的datagridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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