如何编写代码进行编辑和编辑在GridView中更新 [英] how to write coding for edit & update in gridview

查看:85
本文介绍了如何编写代码进行编辑和编辑在GridView中更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

谁能告诉我如何在3轮胎架构中的gridview中编写更新代码.

请帮助我.

Hi friends,

Can anyone tell me how to write code for update in gridview in a 3 tire architecture.

Please help me.

推荐答案

在gridview中更新
只是谷歌它...或使用CodeProject搜索.它也会出现在任何初学者的书中.


采用3轮胎架构
在3层架构中,您将拥有3层:
1.用户界面
2.业务逻辑
3.数据库访问层

在用户界面中:
因此,使用Gridview获取需要更新的数据

在业务逻辑中:
根据需要修改数据-可以是一些逻辑,计算等

在数据库访问层中:
插入/更新/删除-使用从BL传递到DAL的数据执行任何与DB相关的操作.在此处与数据库进行交互.
update in gridview
Just Google it... or use CodeProject search. It would be in any Beginner''s book too.


in a 3 tire architecture
In 3-tier architecture... you would have 3 layers:
1. UI
2. Business Logic
3. Database Access Layer

In UI:
So, get the data that you need to be updated using Gridview

In Business Logic:
Modify the data as per you need - can be some logic, calculation or so

In Database Access Layer:
Insert/Update/Delete - do any DB related operation with the data passed on from BL to DAL. Interact with database here.


这篇关于如何编写代码进行编辑和编辑在GridView中更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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