C# 更新asp.net网格视图
我正在使用asp.net网格视图 我调用了一些sql server存储过程 将其附加到gridView:C# 更新asp.net网格视图,c#,asp.net,C#,Asp.net,我正在使用asp.net网格视图 我调用了一些sql server存储过程 将其附加到gridView: gvResults.DataSource = dr; gvResults.DataBind(); 我想使特定列可编辑 如何将更新sp附加到视图?尝试gridview的Rowdatabound处理程序: protected void Gridview1_RowDataBound(object send
gvResults.DataSource = dr;
gvResults.DataBind();
我想使特定列可编辑
如何将更新sp附加到视图?尝试gridview的Rowdatabound处理程序:
protected void Gridview1_RowDataBound(object sender, GridViewRowEventArgs e)
{
try
{
HyperLink hlControl = new HyperLink();
hlControl.Text = "Info";
hlControl.NavigateUrl = e.Row.Cells[3].Text;
e.Row.Cells[3].Controls.Add(hlControl);
}
catch
{
}
}
我写这篇文章是为了将特定列中数据源的响应更改为超链接控件,您可以对该列执行任何操作。您可以使用UpdateCommand
这样做了,但是布尔字段(在可编辑列中)没有变成可编辑复选框