当您不知道要编辑的行的索引时编辑数据表中的记录 [英] Editing a Record in a DataTable When You Do Not Know the Index of the Row That You Want To Edit

查看:61
本文介绍了当您不知道要编辑的行的索引时编辑数据表中的记录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我不知道行的索引时,如何使用文本框值更新数据..
我该怎么办?
我想在WHERE条件下指定行索引,而不是ID

how can i update data using textbox values when i dont know the index of the row..
How can i do this?
I want to specify in the WHERE condition the row index and not the ID

推荐答案

这是不可能完成的任务,但我们会尽力为您提供帮助.

This is an impossible mission, but we will try to help you.

protected void m_gvClienteStatus_RowUpdating( object sender, GridViewUpdateEventArgs e )
{
    int rowIndex = m_gvClienteStatus.EditIndex;
    GridViewRow row = m_gvClienteStatus.Rows[ e.RowIndex ];
}



这会有所帮助吗?



this will help?


这篇关于当您不知道要编辑的行的索引时编辑数据表中的记录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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