Windows应用程序数据网格视图:编辑,更新和删除源代码 [英] Windows application data grid view: edit, update and delete source code
本文介绍了Windows应用程序数据网格视图:编辑,更新和删除源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要编辑,更新和删除数据网格视图的源代码.
向我发送了用于开发项目的C#源代码.
Hi,
I need source code of data grid view of edit, update and delete.
Sent me C# source code for develop project.
推荐答案
您到目前为止尝试了什么……如果没有,您为什么希望我们为您提供完整的示例.
我们可以看到您甚至无法使用Google搜索您的作品.这是一个门户,可以接受对问题的请求.不是人们会做家庭作业的地方
What have you tried so far... if nothing why are you expecting us to make a complete example for you.
We can see you can''t even Google your work. This is a portal where a request for a problem can be accepted. Not the place where people will do your home work
检查适配器是否具有插入,删除,更新查询.是否具有
按下一个按钮,然后单击该按钮使用
Check whether your adapter have insert,delete,update query or not.if have
take a button and on click of this button use
private void button2_Click(object sender, EventArgs e)
{
try
{
yourTableAdapter.Update(yourDataSet.Tableaname);
MessageBox.Show("Record Updated", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch (Exception ex)
{
MessageBox.Show("Some Error in Update", "Message", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
这篇关于Windows应用程序数据网格视图:编辑,更新和删除源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文