473,395 Members | 1,863 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

How do you make a gridview depend on a dataset that you create

I have a programming problem - I'm supposed to take a gridview listing
people, and then link from one row to another to indicate that the
people are the same (if they are), even though the name may be spelled
a little differently or some of the data might be inaccurate. It is
hard to think of any user interface that would allow this, but I'm
thinking that the grid might have SELECT buttons, and when the Select
button is clicked, I add a row to another gridview - a gridview of
'duplicates'. The problem is that this new gridview would not be
associated with a table - I'd rather associate it with a dataset that
I create. How is this done? In other words, when there is no
database behind a sqldatasource, what do you do?
Thanks,
Marvin
Jun 27 '08 #1
1 1191
Well, you could bind the gridview to a datasource that is filtered as
needed.

However, to me, a simpler way would be to respond to the link click and then
simply create a datasource however is easiest for you and then
programmatically assign the data source to the GridView's DataSource
property, and call the DataBind method.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

<CO*********@lycos.comwrote in message
news:be**********************************@p25g2000 hsf.googlegroups.com...
>I have a programming problem - I'm supposed to take a gridview listing
people, and then link from one row to another to indicate that the
people are the same (if they are), even though the name may be spelled
a little differently or some of the data might be inaccurate. It is
hard to think of any user interface that would allow this, but I'm
thinking that the grid might have SELECT buttons, and when the Select
button is clicked, I add a row to another gridview - a gridview of
'duplicates'. The problem is that this new gridview would not be
associated with a table - I'd rather associate it with a dataset that
I create. How is this done? In other words, when there is no
database behind a sqldatasource, what do you do?
Thanks,
Marvin
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: theKirk | last post by:
using Visual Studio 2005 C# ASP.NET I know there has to be a simple way to do this....I want to use C# in a code behind for aspx. Populate a GridView from an xml file Add Fields to the...
3
by: Seagull Ng | last post by:
Hello all, I am doing my web-based reporting tool in ASP.Net 2.0 using Visual Web Developer 2005. I try to export my populated gridview to Excel spreadsheet but what I got is just a blank...
0
by: Miguel Dias Moura | last post by:
Hello, I have an Asp.Net 2.0 Grid View on a page. I created the GridView from my ASPX.VB file, i.e., my VB code. The GridView has 2 TemplateFields. The first TemplateField has a Label and the...
2
by: rufpirat | last post by:
Hello I'm in the middle of trying to build an "AD phone book", and this being my first try at asp.net, I have a few questions that I hope some of you might be able to help with: 1. Is it...
1
by: Miguel Dias Moura | last post by:
Hello, I have a GridView in my page which is created in runtime. It works fine. My page has 2 Asp Buttons: - The HIDE button makes GridView.Visible = False; - The SHOW button makes...
5
by: sutphinwb | last post by:
Hi - This could be a simple question. When I relate two tables in a datasetet, how do I get that relation to show up in a GridView? The only way I've done it, is to create a separate table in the...
7
by: GaryDean | last post by:
I'm trying to load a GridView up with data manually, in code. I'm not using any datasource. Using this code.... ArrayList myRowArrayList; GridViewRow myGVR = new...
3
by: BartMan | last post by:
Greetings, I have a gridview which is sitting on a multi view control (witin a view), and it is bound to a dataset which I dynamically apply to the control within asp.net page. The problem is...
2
by: antonyliu2002 | last post by:
I've been googling for some time, and could not find the solution to this problem. I am testing the paging feature of gridview. I have a very simple web form on which the user can select a few...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.