.Net UI页面-给我一个建议 [英] .Net UI Page - Give me a suggestion

查看:66
本文介绍了.Net UI页面-给我一个建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请给我关于这个问题的建议...

我在这里以相同的形式使用两个表,我在第一个表中使用了名为VIEW的超链接选项.

当我单击此VIEW链接时,我需要显示下表,并放入Visible=false.

Give me a suggestion for this issue...

I''m using two tables in same form here i using a hyperlink option named VIEW in first table.

when i click this VIEW link i need to display the below table , which i put Visible=false.

推荐答案

如果表的类型为HTMLTable [ LinkBut​​ton [ ^ ]相反,因为它具有click事件,您可以在其中设置代码以显示/隐藏表.
If the type of your table is HTMLTable[^], you can easily do this on the code behind because of the Visible property. As for the hyperlink, I suggest you use LinkButton[^] instead because it has a click event where you will be able to set the code to display/hide the table.


DataGridView1_CellClick事件中,您可以检查e.ColumnIndex是否为超链接专栏然后使Gridview2.Visible=true
on DataGridView1_CellClick event you can check the e.ColumnIndex if it is hyperlink column then make Gridview2.Visible=true


我是菜鸟,不确定我是不是告诉正确,但我想在逻辑上回答你...

看到您有两个表,例如table1和table2 ......,并且假设您已经设置了table2.visible = false;

您应该转到表1中的VIEW超链接的事件处理程序,例如:button1_click

并在那里写.....

table2.visible = true;


我完全不了解关键字....所以您应该弄清楚自己....谢谢您的聆听....

希望对您有帮助:)
I am a rookie, and not sure if i am telling correct or not, but i want to answer you little logically.....

See you have two tables like table1 and table2...... and supposingly you already set table2.visible = false;

You should go to the event handler of your VIEW hyperlink in table1, like for eg: button1_click

and write there.....

table2.visible = true;


I properly don''t know about keywords.... so you should figure out themselves.... Thanks for hearing me....

I hope this might help you :)


这篇关于.Net UI页面-给我一个建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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