CIS 338: ListView Control Dr. Ralph D. Westfall May, 2011.

Slides:



Advertisements
Similar presentations
Tutorial 3 – Creating a Multiple-Page Report
Advertisements

1.
Word Lesson 11 Customizing Tables and Creating Charts Microsoft Office 2010 Advanced Cable / Morrison 1.
Wincite Introduces Knowledge Notebooks A new approach to collecting, organizing and distributing internal and external information sources and analysis.
Exploring Word Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Advanced Features: Tables, Styles, and Sections.
1 Microsoft Office Word 2003 Tutorial 3 Creating a Multiple-Page Report.
Chapter 5 Creating, Sorting, and Querying a Table
Chapter 6 Multiform Projects Copyright © 2011 by The McGraw-Hill Companies, Inc. All Rights Reserved. McGraw-Hill.
® Microsoft Office 2010 Word Tutorial 3 Creating a Multiple-Page Report.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 8 Arrays.
©2004 Brooks/Cole Chapter 8 Arrays. Figures ©2004 Brooks/Cole CS 119: Intro to JavaFall 2005 Sometimes we have lists of data values that all need to be.
CVEV 118/698 Visual Basic Lecture 3 Prof. Mounir Mabsout Elsa Sulukdjian Walid El Asmar.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
Microsoft Visual Basic 2012 CHAPTER TEN Incorporating Databases with ADO.NET.
WORKING WITH FILES, MENUS AND DATABASES IN VISUAL BASIC BY V. V. SUBRAHMANYAM.
VBA & Excel Barry L. Nelson IEMS 465 Fall Quarter 2003.
Working with SharePoint Document Libraries. What are document libraries? Document libraries are collections of files that you can share with team members.
Stored Procedures Dr. Ralph D. Westfall May, 2009.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
CHAPTER 9 DATABASE MANAGEMENT © Prepared By: Razif Razali.
CIS 338: Creating ActiveX Controls Dr. Ralph D. Westfall March, 2003.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
CITY UNIVERSITY / Vysoká Škola Manažmentu.:IS Information Systems :. © Martina Cesalova, 2005 MS FRONTPAGE 4 1. Create a folder on L/BSBA/IS330/website.
Microsoft Visual Basic 2010: Reloaded Fourth Edition Chapter Twelve Access Databases and LINQ.
Microsoft Access Lesson 1 Lexington Technology Center February 11, 2003 Bob Herring On the Web at
Microsoft ® Office Access ® 2007 Training Datasheets II: Sum, sort, filter, and find your data ICT Staff Development presents:
1 Working with Menus and Dialog Boxes. 2 Objectives You will be able to Create and edit menus for Windows Forms applications. Write code to handle menu.
2. Introduction to the Visual Studio.NET IDE. Chapter Outline Overview of the Visual Studio.NET IDE Overview of the Visual Studio.NET IDE Menu Bar and.
AGB 260: Agribusiness Information Technology Tables.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
1 Working with MS SQL Server Textbook Chapter 14.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 Working with MSSQL Server Code:G0-C# Version: 1.0 Author: Pham Trung Hai CTD.
CIS 338: Problem Solving Dr. Ralph D. Westfall April, 2011.
XP New Perspectives on Microsoft Word 2002 Tutorial 31 Microsoft Word 2002 Tutorial 3 – Creating a Multiple-Page Report.
Key Applications Module Lesson 21 — Access Essentials
CIS 451: USING ASP.NET TO CREATE XML Dr. Ralph D. Westfall February, 2009.
CIS 338: Using Queries in Access as a RecordSource Dr. Ralph D. Westfall May, 2011.
Data files and databases. Need a control to browse to a file Standard controls for drive folder and list not much use The CommonDialogs control offers.
Working with option button, check box, and list box controls Visual Basic for Applications 13.
1 Chapter 12 – Web Applications 12.1 Programming for the Web, Part I 12.2 Programming for the Web, Part II 12.3 Using Databases in Web Programs.
McGraw-Hill © 2009 The McGraw-Hill Companies, Inc. All rights reserved. Chapter 6 Multiform Projects.
Demo: Power Tools for P8 Presenter: Jay Bowen Demonstration Topic: Choice List Features Demo URL below Power Tools Choice List Support 1. Native P8 Choice.
Damian Tamayo Tutorial DTM Data Generator Fall 2008 CIS 764.
Visual Basic Programming Chapter Six Notes Repetition and the Do Statement ADDING ICONS TO YOUR FORM –It is possible to add an ______________ to your title.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 15 Advanced Tables.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
CERTIPORT EXCEL PRACTICE. EDITING SORT/FILTER/FIND & REPLACE In the Summary worksheet, sort the data in descending order by Order Number, and then in.
® IBM Software Group © 2006 IBM Corporation JSF File Upload Control This Learning Module describes the use of the JSF File Upload component – for allowing.
®® Microsoft Windows 7 for Power Users Tutorial 3 Managing Folders and Files.
Normalizing Database Files Professor Ralph Westfall May, 2011.
 2002 Prentice Hall. All rights reserved. 1 Chapter 2 – Introduction to the Visual Studio.NET IDE Outline 2.1Introduction 2.2Visual Studio.NET Integrated.
1 Chapter 10 – Database Management 10.1 An Introduction to Databases 10.2 Editing and Designing Databases.
Compare and Contrast : Blackboard & a Personal Web Page www3.ltu.edu/~s_schneider/howto/faculty.htm You’ll find this presentation (and another) here :
List Boxes and Combo Boxes Provides a list of items to select from Various styles — choose based on Space available Need to select from an existing list.
Prepared by the Academic Faculty Members of IT. Tables Creating Tables. Merging Cells. Splitting Cells. Sorting Tables. Performing Calculations.
Creating New Forms Projects can appear more professional when using different windows for different types of information. Select Add Windows Form from.
CIS 338: VB.NET Printing Dr. Ralph D. Westfall May, 2011.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 6 Looping and Multiple Forms.
Tables MOAC LESSON 6. Table  Arrangement of data made up of horizontal rows and vertical columns  Used to organize information.
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 11 Creating Web Applications and Writing Data to a Database.
Weebly Elements, Continued
Stored Procedures Dr. Ralph D. Westfall May, 2011.
Incorporating Databases with ADO.NET
Introducing Do While & Do Until Loops & Repetition Statements
Incorporating Databases with ADO.NET
Tutorial 3 – Creating a Multiple-Page Report
I dragged over the label tool (A icon) and put it on the form.
CIS 338: Images on Forms Dr. Ralph D. Westfall May, 2009.
Introduction to Computer Programming IT-104
Presentation transcript:

CIS 338: ListView Control Dr. Ralph D. Westfall May, 2011

ListView Control used in Windows Explorer to view files try File>Open>Browse in IE can display data in variety of ways large or small icons displayed horizontally single or multiple-column lists multiple-column lists can be sorted (only by first columns, ascending or descending)

ListView Startup Code Private clmX as ColumnHeader Private itmX As ListViewItem Private Sub [formname]_Load( … etc. 'creating column headers (captions) 1st 'Optional: add ImageLists from ToolBox 'Add icons to ImageList's Images property ListView1.LargeImageList = ImageList1 ListView1.SmallImageList = ImageList2

ListView Headers clmX = ListView1.Columns.Add _ ("[ ]", 90, HorizontalAlignment.Center) clmX = ListView1.Columns.Add _ ("[ ]", 100, HorizontalAlignment.Center) 'repeat code for each additional header ListView1.View = View.Details 'show columns over outputs

ListView Row Data 'loading row of list items itmX = ListView1.Items.Add("[ ]") itmX.SubItems.Add("[ ]") itmX.SubItems.Add("[ ]" itmX.ImageIndex = (#) 'Integer ‘Can repeat for additional SubItems. ‘Can put above lines in a loop in a Sub, 'to load from an array, file or database, 'or just use loop indexes to load a demo. ‘See Notes.

ListView View Mode 'can set/change View property in code ListView1.View = View.Details 'table ListView1.Show() 'see array data example in Notes ListView.Clear() 'removes items, but columns stay there

Microsoft ListView Tutorial (more work than it's worth?) copy and paste documentation example code into a form with just a button, and then modify it as necessarydocumentation example download images below into project's \bin subdirectory image files for use with sample code image files see notes below to set code paths

Other ListView Tutorials Listview«GUI«VB.NET Tutorial Filling Listview with data retrieved from database

ListView Reversible Sorting Private Sub ListView1_ColumnClick( …notes Static intCounter As Integer 'persists If intCounter Mod 2 = 1 Then 'odd count ListView1.Sorting = SortOrder.Ascending Else 'even count ListView1.Sorting = SortOrder.Descending End If intCounter += 1 End Sub'notes: another approach ' do NOT set a Sorting value in Properties of ListView control if you use code for sorting

ListView Control Sorting in VB 6, it was easy to sort by columns less easy in.NET to sort just 1 st column sorting on other columns is even harder sorting on other columns my opinion is that Microsoft really should provide this as a standard feature rather than requiring additional coding

Getting Data into ListView Transport.zipTransport.zip code shows different ways of getting data for a ListView demonstrates use of data coming from a data tier in one of the three ways: from class objects in an array from parallel arrays from concatenated strings