98 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Szabi Zsoldos

Hi guys, I'm having a weird problem regarding the simple ListView. On my emulator everything is allright and the data is loaded correctly from JSON API, the data also loads on my device. The problem is that on my emulator, the listview is populated but on my real device, not, …

Member Avatar for abu_5
0
5K
Member Avatar for Begginnerdev

Hello Daniweb, and thank you for taking the time to read this post. I have a question of efficiency. I am wondering, what is the most efficient way to print from a listview. The listview's values are loaded from a database, and I would like to print from that listview. …

Member Avatar for Ivan_14
0
6K
Member Avatar for westsiderailway

Hello Everyone, This time i am not asking for any help :-) I am showing anybody ,who wants to know how to add a $ sign into any item/subitem in Listview. Did try to add colour,BUT, there is a BUG in VS. you can code for differant colours in subitems,BUT …

Member Avatar for westsiderailway
0
448
Member Avatar for westsiderailway

HI again, I would like to know how i would use a loop for the following code, thanks for read this. LV1.Columns.Add(ds.Tables(0).Columns(0).ColumnName, 25) LV1.Columns.Add(ds.Tables(0).Columns(1).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(2).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(3).ColumnName) LV1.Columns.Add(ds.Tables(0).Columns(4).ColumnName) LV1.Columns.Add(ds.Tables(0).Columns(5).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(6).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(7).ColumnName, 75) LV1.Columns.Add(ds.Tables(0).Columns(8).ColumnName, 75) LVitem.Text = dt.Rows(0).Item(0).ToString LVitem.SubItems.Add(dt.Rows(0).Item(1).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(2).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(3).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(4).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(5).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(6).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(7).ToString) LVitem.SubItems.Add(dt.Rows(0).Item(8).ToString) i was …

Member Avatar for westsiderailway
0
4K
Member Avatar for Quast

[Click Here](http://www.imageupload.co.uk/images/2015/03/15/rtb.png) what i want is that when i write any thing on the richtextbox it appear on cell Text. I have found some codes on the internet but i don't know whats wrong: for (int i = 0; i < richTextBox1.Lines.Length; i++) { ListViewItem lvi = new ListViewItem(i.ToString()); lvi.SubItems.Add(richTextBox1.Lines[i]); …

Member Avatar for Quast
0
295
Member Avatar for ponnu

I have vb form that accepts input from user,search in database(database acess) and displays matching records if any in the listview .The problem is that the search query will display only one matching record even if there are many matching records .anyone please help

Member Avatar for hannah_2
0
2K
Member Avatar for samkri

I am developing a C# Windows Form Application. Now i am trying to select value from Listbox and load corresponding value in List view using the stored procedure. And this is my stored Procedure: ALTER PROCEDURE [dbo].[spPOExport] @BST_BESTELLUNG INT AS BEGIN SELECT BH.BST_LIEFERANT AS Product Name, BZ.BDT_REFNUMMER AS Unit Price, …

Member Avatar for hericles
0
310
Member Avatar for Qromium

Closing my program saves the entire listview. Opening the program restores the entire listview, however, each item loses it's ImageKey. How do I restore the ImageKey when reopening the program? A better way of putting it: If any item in the listview has the same name as any item from …

Member Avatar for Qromium
0
252
Member Avatar for JOSheaIV

Alright this is reallly stumping me and rather aggravating. Long story short, I didn't like how the ListView worked in C#, so I decided it was time to build my own, using a TableLayoutPanel and a custom control I built to emulate the image and text effect. Well while testing …

Member Avatar for JOSheaIV
0
438
Member Avatar for Doogledude123

Okay, so I have a ListView populated by an Array, which is populated by a text file. I also have 3 TextBoxes which are changed to different values in multiple Arrays using the Selected Index. My problem occurs when reloading the ListView after saving the text file. The values from …

Member Avatar for JamesCherrill
0
693
Member Avatar for riayas

I have 2 forms , form one has a datagrid with 10 columns form 2 has a listview box with 4 columns i want to populate the listview columns with 4 of the values from a row in the datagrid when the row is selected and the 'add ' button …

Member Avatar for riayas
0
704
Member Avatar for mokushirokuxen

![7d2f0b828b7075213b3cc4ce79ce21d1](/attachments/large/4/7d2f0b828b7075213b3cc4ce79ce21d1.png "7d2f0b828b7075213b3cc4ce79ce21d1") i have 2 database listview1(from tbl_storage) listview2(fromsales) so i want my listview items and subitems to be increment or be loop correct me if im wrong with that. sellingprice and Qty.(Quantity) ex. itemno | name | qty| price | total | 1 | a | 1 | 100 …

Member Avatar for mokushirokuxen
0
446
Member Avatar for sash_kp

I am retrieving data from sqlite and showing it in a listview using simpleadapter.I don't have any issues regarding Layouts.Still just for your reference : list_item.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical" android:padding="10dp" android:paddingLeft="10dp" android:paddingRight="10dp" > <!-- Name Label --> <TextView android:id="@+id/subject" android:layout_width="fill_parent" android:layout_height="wrap_content" android:paddingBottom="2dip" android:paddingTop="6dip" android:textColor="#421fc4" android:textSize="16sp" android:textStyle="bold" /> <TextView …

Member Avatar for peter_budo
0
2K
Member Avatar for glenn_boy13

Hello, I have a listview1 in my form. And my form has the ability to fullscreen itself. In the meantime, I have this code: ListView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize) But that would only depend on the listview's headersize. or the column's header width. I would like my all columns to share equal width. For …

Member Avatar for deceptikon
0
525
Member Avatar for oks1998

Dim hTable As Hashtable = New Hashtable() Dim duplicateList As ArrayList = New ArrayList() Dim itm As ListViewItem For Each itm In ListView1.Items If hTable.ContainsKey(itm.Text) AndAlso hTable.ContainsKey(itm.SubItems(1).Text) AndAlso hTable.ContainsKey(itm.SubItems(2).Text) AndAlso hTable.ContainsKey(itm.SubItems(3).Text) Then 'duplicate duplicateList.Add(itm) Else hTable.Add(itm.Text, String.Empty) End If Next 'remove duplicates For Each itm In duplicateList ListView1.Items.Remove(itm) Next I …

Member Avatar for tinstaafl
0
1K
Member Avatar for pritaeas

I have multiple listviews on a form (WinForms). List items can be dragged to other listviews. Is there a way to cancel a single item within the dragged items list? The target listview determines whether or not a single item can be dropped there. I'd prefer a solution that will …

Member Avatar for pritaeas
0
258
Member Avatar for Deep Modi

I am trying to add the History page in my application which will work like as i shown below: 1st Column: (Date); 2nd column: (Login Time); 3rd Column: (Logout Time) I added the following code: Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load …

Member Avatar for Begginnerdev
0
294
Member Avatar for razree

Hi all, I really need your help on this one. I have a MSSQL db table with two columns-ID and name. Each row in this two columns contains an unique ID and a name. Now I have a query that imports just a name in the listview (I don't want …

Member Avatar for razree
0
1K
Member Avatar for iFrolox

Hello, How can I search for specific proccesses example "abc.exe" and add it to a listView and read values in it like an specific labels to add the processes on a specific group in the listView. Any articles would be nice.

Member Avatar for iFrolox
0
220
Member Avatar for DyO1

I would like to make a Export / Import buttons that will save/open files that contain listView data (ListView Items) Can someone tell me is there a way to do this?

Member Avatar for DyO1
0
664
Member Avatar for Sturdy

Hi all, I'm make a program to read text file. I can read the text file but don't know how to write it to listview. This my code to read into arrays: Function ReadFileText(ByVal filename As String) As String Dim handle As Integer ' ensure that the file exists If …

Member Avatar for Sturdy
0
2K
Member Avatar for Papa_Don

Hi group, I've been playing with a ListView and I'm struggling to get it to populated with info in a database. I'm hoping you may see something in my code that is creating the error. Dim con As New SqlConnection Dim cmd As New SqlCommand Dim rdr As SqlDataReader = …

Member Avatar for Hazuan Nazri
0
2K
Member Avatar for Nebil

Hi all, I was having a huge problem,i mean i spent days trying to fix it but i get the same exception everytime when i run the app. here's the thing i have a record that is loaded from the database using the listview.it works perfect for the insertion part.but …

Member Avatar for Begginnerdev
0
343
Member Avatar for keedier

hi there, im new in coding on visual basic, well, im new at coding at anything :) i have a problem on my telephone directory program that i created about listview, i was wondering if i can click the item on a listview and show the result on a new …

Member Avatar for Jx_Man
0
275
Member Avatar for ImZick

Hi how can i sort using Month i have January, February.... December i want to sort it out so the user will see it from January - December my column name is "Months" and it is in subitems(0) Thank you in a advanced

Member Avatar for ImZick
0
556
Member Avatar for khair.ullah

hi all. I want to fill the Listview from a mssql database in vb.net but it not show all the data in Listview. I have the followning code. Dim sSQL As String Dim lvwItem As New ListViewItem() sSQL = "SELECT field1, field2, field3 FROM tablenam e " sSQL = sSQL …

Member Avatar for evadehawkeye07
0
6K
Member Avatar for ImZick

Hello its me again... sorry to keep on posting about my problem well here it goes.. If you see in the attached file. ![Sum](/attachments/large/4/Sum.jpg "Sum") I have an AM Ervielette, Marriane etc. now i need to add their Total Calls for Ervie and Total Visits same goes to the other.. …

Member Avatar for ImZick
0
276
Member Avatar for TIP.Synergy

Hi to Everyone, I want to get the total (column) amount using Listview w/o database VB.NET Help me please... Thanks.. _______________________________________________________________________________________________________ lstitems Item Name | Unit Price | Quantity | Amount ------------------------------------------------------------ Sample1 | 100.00 | 1 | 100.00 Sample2 | 100.00 | 1 | 200.00 Sample3| 100.00 | 1 …

Member Avatar for N.E.Y.O-01
0
5K
Member Avatar for ImZick

Hi guys I'm here again asking for help Can someone can gave me an idea about how to find all data in my first listview to another? ![Two_Listview](/attachments/large/4/Two_Listview.jpg "Two_Listview") Here is the picture. You see their are a column name AM in my first Listview and in the second their …

Member Avatar for ImZick
0
278
Member Avatar for ravenous

OK, so I'm mainly a C++ developer but I've been looking into making apps for Android. I haven't used Java before, or done much UI development, so it's a lot to take in at the moment. **There is a question at the end of this, skip to it if you …

Member Avatar for ravenous
0
146

The End.