\" to linkbu开发者_如何学运维tton(inside gridview\'s template field) will it return (i) GridViewRow of current Row or (ii)DataKey" />
开发者

GridView Property clarification

开发者 https://www.devze.com 2022-12-25 18:04 出处:网络
if i set, CommandArgument=\"<%#((GridViewRow)Container).RowIndex %>\" to linkbu开发者_如何学运维tton(inside gridview\'s template field) will it return (i) GridViewRow of current Row or (ii)DataKey

if i set, CommandArgument="<%#((GridViewRow)Container).RowIndex %>" to linkbu开发者_如何学运维tton(inside gridview's template field) will it return (i) GridViewRow of current Row or (ii)DataKey value of current row?


((GridViewRow)Container).RowIndex

Will return a string representation of a integer value of the current datagrid row. See MSDN. Having this piece of information you can get to the DataKey or the GridView row. If you need to know how I can update my answer.

Hope that helps

0

精彩评论

暂无评论...
验证码 换一张
取 消