在C#中隐藏表格行 [英] Hiding table row in C#

查看:110
本文介绍了在C#中隐藏表格行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在这里遇到问题...我已经在表表上创建了该表,我正在使用table.Row.Add(rowname)...添加一行.现在在该行中我正在使用for循环添加单元格...现在问题是,如果我想通过检查cell.text ......的条件隐藏任何行,任何人都可以帮忙吗?

任何帮助都将得到应用....

注意:表是动态创建的,必须在复选框的选中或未选中条件下隐藏或显示...

HI all,

I getting an issue here...i have created on table table and in that table i m adding a row using table.Row.Add(rowname)....now in that row im adding cells using for loop...Now issue is that if i want to hide any of the row by checking the condition of cell.text.....what to do can anyone help??

Any help would be appriciated....

Note:Table is creating dynamically and have to hide or show on checkbox''s checked or unchecked condition...

推荐答案

在后台使用表格来保存您的隐藏"行:

Use a table in the background to hold your "hidden" rows:

hiddenRowsTable.Rows.Add(table.Rows.Remove());


这篇关于在C#中隐藏表格行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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