Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 565057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:49:55+00:00 2026-05-13T12:49:55+00:00

I am using Asp.net 3.5, C#, Visual Studio 2008. Ok, so I admit I

  • 0

I am using Asp.net 3.5, C#, Visual Studio 2008. Ok, so I admit I am being really lazy here, but I know there’s got to be a way to do this.

I have 2 identical listviews – listview1 and listview2. There is a checkbox in column 1 of both listviews, and a button on the page.

I would like to copy the rows that are checked in listview1 to listview2 when the button is pressed.

I know how to do this by looping thru listview1, but how can I do it in one step using an ObjectDataSource?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:49:56+00:00Added an answer on May 13, 2026 at 12:49 pm

    perhaps some linq magic, something like

    var data = listView1.Items.Where(i=> i.selected == true);
    
    viewlist2.DataSource = data;
    viewlist2.DataBind();
    

    I do not have VS right now, so this code is just from the top of my head and im not sure if the properties are named like that, or if you can use a where directly on Items or if you have to do a .ToList fist

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Applications I am using: Visual Studio 2008 (C#/ASP.NET) Visual Source Safe 8.0 IIS 5.1
I am using Firefox 3 to debug my ASP.NET applications in Visual Studio 2008.
If I'm using Visual Studio 2008 targeted to ASP.NET 2.0, then which version of
I'm developing an ASP.NET 2.0 app using Visual Studio 2008. If I want to
I am working on a CMS project using ASP.Net 3.5/Visual studio 2008.This is the
Using asp.net 3.5 Gridview control, visual studio 2008. I have played with all the
I am using ASP.NET 3.5 with Visual Studio 2008. I have a few questions
We have an ASP.Net MVC 1.0 solution developed using Visual Studio 2008 and .net
I am using ASP.NET MVC 2 & .Net 3.5 with Visual Studio 2008. Ok,
We do ASP.NET Development using Visual Studio. A discussion point we've just had is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.