嗨朋友,C#-Windows应用程序 [英] Hi friends, C#- windows application

查看:54
本文介绍了嗨朋友,C#-Windows应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友,
如何直接在Windows应用程序中使用datagridview插入,更新和删除数据集中的行.
(不使用文本框.我需要三层体系结构.

我们不能直接使用Data Grid View或DataAccessLayer中的任何其他控件.... like

SqlDataAdapter da =新的SqlDataAdaptor(某些查询" + Convert.ToInt32(dataGridView1.SelectedRows [0] .Cells [0] .Value.ToString())+",conStr);

我需要程序如何在3tire中实现-谢谢您

hi friends,
how to insert,update and delete rows in a dataset using datagridview directly in windows application.
(with out using textboxes.I need in three layered architecture.

we cant use Data Grid View or any other controls in DataAccessLayer directly....like

SqlDataAdapter da = new SqlDataAdaptor("some query"+ Convert.ToInt32(dataGridView1.SelectedRows[0].Cells[0].Value.ToString())+" ",conStr);

I need procedure how to implement in 3tire -Thank You

推荐答案

google在您身边坏了吗?

尝试在 CodeProject文章搜索 [ CodeProject搜索 [插入,更新和在C#Windows应用程序中使用DataGridView控件删除. [使用DataGridView插入,更新和删除C#(Windows应用程序)中的控件 [ C#中的三层体系结构 [使用C#的ASP.NET中的3层体系结构 [ C#.NET中的三层体系结构 [使用C#创建N/3层/分层应用程序 [ ^ ]
Is google broken at your side?

Try search on Google[^] it gives About 112,000 results (0.37 seconds). Try it.
And often visit it.

You can also try on CodeProject Article search[^] and similar QA on CodeProject Search[^]

Here''s good article of same google search:
Insert, Update and Delete Using DataGridView Control In C# Windows Application.[^]
Insert, Update, Delete with DataGridView Control in C# (Windows Application)[^]


Refer these links to get familiar with 3-tier architecture.
3-tier architecture in C#[^]
3-Tier Architecture in ASP.NET with C#[^]
Three Layer Architecture in C# .NET[^]
Creating a N/3-Tier/Layered Application using C#[^]


查看这些链接对于三层体系结构,您可能会有所了解


http: //www.c-sharpcorner.com/Forums/Thread/177429/i-want-to-design-a-windows-application-using-3-tier-architec.aspx [ http://www.dotnetfunda.com/articles/article71.aspx [ C#中的三层体系结构 [http://www.aspsnippets. com/Articles/GridView ---添加-编辑-更新-删除和分页-AJAX-way.aspx [
See These Links For 3- layered architecture you may get some idea


http://www.c-sharpcorner.com/Forums/Thread/177429/i-want-to-design-a-windows-application-using-3-tier-architec.aspx[^]

http://www.dotnetfunda.com/articles/article71.aspx[^]

3-tier architecture in C#[^]

http://www.aspsnippets.com/Articles/GridView---Add-Edit-Update-Delete-and-Paging-the-AJAX-way.aspx[^]


这篇关于嗨朋友,C#-Windows应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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