English 中文(简体)
• 如何找到选定的浏览点?
原标题:How to find out gridview s selected row position?

在小组内,我有一个文字箱和纽顿,我想在组别下显示这个小组,然后把选定的浏览网格、网格观察也放在另一个小组内,是否找到了选定的浏览点? 这是一页。 网上页面和我使用vb.net。 小组可替换为零件

赞赏你的帮助。

问题回答

您能否在网格中增加一栏(隐藏的)外,将小组的文字和纽扣放在一栏中,然后在选择行子时简单显示隐藏的囚室?

you will need to use the onRowCommand for the gridview : [OnRowCommand][1]

First your database should have an id column with the identity(1,1) enabled.

然后,请在您的电网中添加:

onRowCommand = Row_Command

之后添加一个联系点:

<asp:LinkButton runat="server" ID="linkButton" CommandName="Row_Command" CommandArgument= <%# HttpUtility.HtmlEncode(Eval("ID_COLUMN")) %>  Text="text"></asp:LinkButton>

finally in the code behind under the Row_Command:

利用下线避免与分类和制版发生冲突:

protected void reportComments(object sender, GridViewCommandEventArgs e) {
if (e.CommandName == "reportComments") {} }

以及如果你能够利用这一指挥来取得流 position的位置:

Something = e.CommandArgument.ToString();

并且应该这样做。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签