我正在做一个小型项目.项目名称是“火车路线信息系统".我对我的项目有一个疑问. [英] i'm doing a mini project. the project title is "train routing information system" i have one doubt in my project.

查看:78
本文介绍了我正在做一个小型项目.项目名称是“火车路线信息系统".我对我的项目有一个疑问.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用网格视图显示数据库...?不久我将解释我的项目.
如果乘客单击两个站,分别表示来源和目的地.将显示火车详细信息.这是我的第一个模块...我怀疑如何显示数据库.请帮助我并以正确的编码答复我.

how to display the data base using grid view...? shortly i will explain my project.
if the passenger click the two stations that means source and destination.. the train details will be display. this is my first module... i have a doubt that how to display the data base. please help me and reply me with correct coding.

推荐答案

您可以将信息(站,距离,地标等)存储在数据源中,例如(数据库,XML)文件等),然后根据用户的操作从数据源中检索信息,并将其显示在网格视图中.

您可以参考这些内容来检索&显示数据:

http://msdn.microsoft.com/en-us/library/aa479341.aspx [ ^ ]

在具有搜索功能的GridView中显示大量数据 [
You can store the Information(stations, distance, landmarks etc.) in a data source like(Database, XML file etc.) and then retrieve the information from the data source on user''s action and display it in grid view.

You can refer these for retrieving & displaying data:

http://msdn.microsoft.com/en-us/library/aa479341.aspx[^]

Display Large Amount of Data in GridView with Search Functionality[^]

hope it helps :)


这篇关于我正在做一个小型项目.项目名称是“火车路线信息系统".我对我的项目有一个疑问.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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