listview

  1. W

    How to read values from datatable into listview?

    please see the picture, I want to show records in listview as they are saved in table. but with below code it is reading group ids only and showing this in a single line. SqlDataAdapter dataAdap = new SqlDataAdapter(sqlcmd); DataTable data = new DataTable()...
  2. D

    Filtering a listview bound to a datatable

    I have a datatable bound to a listview which displays the output of a SQL select statement. I wish to filter what is displayed in the listview based upon text entered into a textbox above it. I have found numerous examples of filtering listviews in this way but all of them are using hardcoded...
  3. J

    Question I want to get my lisview scroll to the selected item and change the selected item des

    I want to get my listview to scroll to the user selected index and change its appearance. I tired to get this in many ways but nothing worked for me. When I select any item from listview I am able to get the data and index of selected item but the SelectedTemplate apply on previous Index. Don't...
  4. flashkid10

    Listview Check box header

    I currently have a listview that contain 5 columns and atextbox that helps search though the data stored. the search function isworking, but I want to link it to five bools (one for each column) so that Ican search though it faster. how do I attach a checkbox to just the columnheaders (and still...
  5. flashkid10

    Listview SubItem ClickEvent

    I'm current creating an app (POC) that list events, and it is going to have a weekly view (Sun-Sat). when you click on a cell it will do something; I want to send a number at a method called "ShowDetails(int x), how would I tag a number onto a subitem and have it send it when the subitem is...
  6. A

    Set Location of ListView below DataGridView Active Row

    ools: Visual Studio 2010 Ultimate, Language C#, Database MySql Hi, I am searching this a while, but to date didn't find any suitable solution. I've a form with bound DataGridView with 5 columns, ProductID, ProductName, Qty, Price and Amount. After normal data entry user can click button...
  7. E

    How to open file location from list view item using context menu strip?

    Here is list of things I want to do: Display context menu strip only when mouse is over the item and right clicked on it, the code I have for that is this: private void contextMenuStrip1_Opening(object sender, CancelEventArgs e) { if (listView1.SelectedItems.Count ==...
Top Bottom