我怎么能在aspxgridview时选择行GET VALU [英] how i can in aspxgridview when select row get valu

查看:99
本文介绍了我怎么能在aspxgridview时选择行GET VALU的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好
我正在使用devexpress工具
并且我允许选择单行= true
当用户选择行时,我如何在aspxgridview中显示
获取此行中列的值并添加到文本框
当选择
好的
感谢您的帮助

hi everyone
i useing devexpress tools
and i do allow selection single row = true
how i can in aspxgridview when user select row
get value of columns in this row and add to text box
when select
ok
thanks for any help

推荐答案

DevExpress团队在04/03/2008 21:42:45
处理(回答)
伊曼纽尔,

您已经找到了一篇专门介绍旧的ASPxGrid和Editors Library Suite的文章.由于您正在使用ASPxGridView和编辑器库,因此应该使用另一种方法.

ASPxGridView提供GetRowValues客户端方法,该方法将允许您获取特定的行值.我们的文档中介绍了此方法:

ASPxClientGridView成员

以下是一些示例代码,显示了如何获取行值:

[JScript]
函数Button1_onclick(){
ASPxGridView1.GetRowValues("CategoryID; CategoryName",OnGetRowValues);
}

函数OnGetRowValues(结果){
for(var i = 0; i< result.length; i ++)
for(var j = 0; j< result [i] .length; j ++){
alert(result [i] [j]);
}
}

谢谢,
柏拉图
Processed (Answered) by DevExpress Team at 04/03/2008 21:42:45

Hi Emmanuel,

You have found an article devoted to the old ASPxGrid and Editors Library Suite. Since you are using the ASPxGridView and Editors Library, you should use another approach.

The ASPxGridView provides the GetRowValues client side method which will allow you to obtain a certain row values. This method is described in our documentation:

ASPxClientGridView Members

Here is some sample code showing how to obtain a row value:

[JScript]
function Button1_onclick() {
ASPxGridView1.GetRowValues("CategoryID;CategoryName", OnGetRowValues);
}

function OnGetRowValues(result) {
for(var i = 0; i < result.length; i ++)
for(var j = 0; j <result[i].length; j++) {
alert(result[i][j]);
}
}

Thanks,
Plato


这篇关于我怎么能在aspxgridview时选择行GET VALU的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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