高亮显示并在datagridview中查看行 [英] HighLight and view row in datagridview
本文介绍了高亮显示并在datagridview中查看行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
如何在datagridview中搜索并突出显示一行,例如,当我在datagridview中有100行,并且该行在此列表中为第54行,现在我在第5行中看到(例如)?
-----
我有100行...
我在datagridview列表中看到1--10行...
Hi
How I can high light a row by searching in datagridview and view that, when i have for example 100rows in datagridview and that row is 54th row in this list and now I see in 5th row(for example)?
-----
I have 100 rows...
I see 1--10 row in list of datagridview...
推荐答案
突出显示该行的一种方法是使用DataGridViewRow.DefaultCellStyle.BackColor [
One way to highlight the row is to use the DataGridViewRow.DefaultCellStyle.BackColor[^] property (Don''t forget to reset it when necessary :) ).
To bring it into view, set theCurrentRow
property of the DataGridView to the row in question. I''ll leave you to search for examples on that.
这篇关于高亮显示并在datagridview中查看行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文