使用填充的gridview打开一个新窗口 [英] Open a new window with populated gridview

查看:77
本文介绍了使用填充的gridview打开一个新窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在gridview中的每一行都包含一个按钮(名称为:Goto)。



单击此按钮将打开一个新窗口并填充新窗口内的gridview,包含来自数据库查询的数据。



新窗口gridview中具有相应id的行将突出显示。



这个新窗口(没有菜单栏和其他选项的普通窗口)会使父窗口处于非活动状态直到关闭。



请问我该怎么做?

解决方案

请看我的评论。问题非常不清楚。



但是,你可能需要一个模态窗口。这是通过使用 ShowDialog 显示它来完成的。



-SA

I want to include a button (with the name: Goto) with every row in a gridview.

This button when clicked will open a new window and fill a gridview inside the new window with data from a database query.

The row with the corresponding id in the new window gridview would be highlighted.

This new window (a plain window without the menu bar and other options) would make the parent window inactive until closed.

Please how do I achieve this?

解决方案

Please see my comment. The question is very unclear.

However, it is likely that you need a modal window. This is done by showing it using ShowDialog.

—SA


这篇关于使用填充的gridview打开一个新窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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