简体   繁体   English

使用vb.net在asp.net中的数据Gridview

[英]Data Gridview in asp.net using vb.net

i have two gridview in two different tr and td,i want to display one of them by setting visibility true or false but when i run it though only one is visible but the position of gridview remains static as it should be placed on the top which is not happening.Help me out 我在两个不同的tr和td中有两个gridview,我想通过将可见性设置为true或false来显示其中一个,但是当我运行它时,虽然只有一个可见,但是gridview的位置保持静态,因为它应该放在顶部没有发生。帮帮我

在此处输入图片说明

Is there any reason you use a table to show these grids? 使用表格显示这些网格有什么原因吗? If I have understood you correctly, you need the bottom grid to take the space above, if the top grid is not visible. 如果我对您的理解正确,那么如果顶部网格不可见,则需要底部网格占据上方的空间。 I strongly recommend not to use a table for this, but relative positioned divs. 我强烈建议不要为此使用表格,而应使用相对定位的div。 If you MUST use a table, use javascript to resize your top row, when needed. 如果您必须使用表格,请在需要时使用javascript调整顶部行的大小。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM