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

C

COHENMARVIN

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
 
J

Jonathan Wood

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,231
Members
46,820
Latest member
GilbertoA5

Latest Threads

Top