DataGridView页脚 [英] DataGridView footer
本文介绍了DataGridView页脚的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
如何在DataGridView中显示页脚?
提前谢谢,
Vanessa
Hi all,
How can I display a footer in a DataGridView?
Thank you in advance,
Vanessa
推荐答案
Vanessa,
你不能。您必须自定义绘制控件并添加
页脚(无论如何都不是小任务)。你最好使用第三方
控件执行此操作,或创建自己的控件,将在DataGridView下方显示
。
>
-
- Nicholas Paldino [.NET / C#MVP]
- mv*@spam.guard.caspershouse.com
" Vanessa" < Va ***** @ discussion.microsoft.com写信息
新闻:A2 *********************** *********** @ microsof t.com ...
Vanessa,
You can''t. You would have to custom paint the control and add the
footer (no small task, by any means). You are better off with a third-party
control that does this, or create your own control which will be displayed
below the DataGridView.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Vanessa" <Va*****@discussions.microsoft.comwrote in message
news:A2**********************************@microsof t.com...
大家好,
如何在DataGridView中显示页脚?
提前谢谢,
Vanessa
Hi all,
How can I display a footer in a DataGridView?
Thank you in advance,
Vanessa
谢谢!
好吧,我需要的是总结一些列并将总数放在最后一行。
如果我添加一行总数,我如何防止它不参加
排序?
提前致谢!
Vanessa
" Nicholas Paldino [.NET / C#MVP]"写道:
Thank you!
Well, what I need is to sum some columns and put the total in the last row.
If I add a row with the total, how can I prevent it to not participate in the
sort?
Thanks in advance!
Vanessa
"Nicholas Paldino [.NET/C# MVP]" wrote:
Vanessa,
你不能。您必须自定义绘制控件并添加
页脚(无论如何都不是小任务)。你最好使用第三方
控件执行此操作,或创建自己的控件,将在DataGridView下方显示
。
>
-
- Nicholas Paldino [.NET / C#MVP]
- mv*@spam.guard.caspershouse.com
" Vanessa" < Va ***** @ discussion.microsoft.com写信息
新闻:A2 *********************** *********** @ microsof t.com ...
Vanessa,
You can''t. You would have to custom paint the control and add the
footer (no small task, by any means). You are better off with a third-party
control that does this, or create your own control which will be displayed
below the DataGridView.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com
"Vanessa" <Va*****@discussions.microsoft.comwrote in message
news:A2**********************************@microsof t.com...
大家好,
如何在DataGridView中显示页脚?
提前谢谢,
Vanessa
Hi all,
How can I display a footer in a DataGridView?
Thank you in advance,
Vanessa
1月7日上午9:44 *,Vanessa< Vane ... @ discussion.microsoft.comwrote:
On Jan 7, 9:44*am, Vanessa <Vane...@discussions.microsoft.comwrote:
大家好,
如何在DataGridView中显示页脚?
提前谢谢,
Vanessa
Hi all,
How can I display a footer in a DataGridView?
Thank you in advance,
Vanessa
绘画是你最好的选择。我扩展了一个ListView控件,以获得一个
页脚和标题。页脚是记录的总和以及允许分页大记录的控件。
欢呼
Greg
Painting it is your best bet. I extended a ListView control to have a
footer and header. The footer was a summation of records as well as
the controls to allow for paging large records.
cheers
Greg
这篇关于DataGridView页脚的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文