210 Topics
![]() | |
The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) My Code is Private Function GetXlUsedRange(ByVal filePath As String) As Object(,) Dim xlApp As Excel.Application Dim xlWorkbooks As Excel.Workbooks Dim xlWorkbook As Excel.Workbook Dim xlSheets As Excel.Sheets Dim xlWorkSheet As Excel.Worksheet Dim xlRange As Excel.Range xlApp = New Excel.Application xlWorkbooks … | |
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, … | |
Group, I've written some code to populate a listview using 3 fields from a database. When creating the listview, I named the individual columns for appearance purposes, (Account No, Company Name and Name). Those columns are being populated appropriately as expected. However data column names are being shown in column … | |
I create a project on vb.net 2010 and SQL server 2008r2 I showing a report in listview report am show fine and error free. But now I want to add a sub total column every end of the category. How it is possible please help me sir Please see the … | |
How to change the color of a cell(back or fore color) of listview item according to item value with if condition. I do it but it is not work and show no error Please help me...... For k = 0 To ListView1.Items.Count - 1 If ListView1.Items(k).SubItems(6).Text > 100 Then ListView1.Items(k).SubItems(6).ForeColor … | |
Several people have asked how to export data to Excel. This code snippet shows how to export the data from a listview in details mode to a new Excel spreadsheet. Take note of the comments in the header to avoid having orphaned Excel.exe tasks eat up your system memory. | |
I am currently working on a program to track my mile for my monthly expense report for work. Everything is working great, however, I can not for the life of me find a code to write 8 lines from the text file back into the listview on my form. I … | |
hye, i have a question about listview checkbox, recently i have tried to do a checkbox inside listview and its print well. but the result are not as i want, what i want is the checkbox is save the item to text file base on which checkbox is checked first. … | |
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. … | |
Hello! I'm trying to display a list of items in a fragment called AgendaList. I am not quite sure what I missed. Here's what I have under AgendaList onCreateView: public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View view = inflater.inflate(R.layout.fragment_agenda_list,container,false); String[] … | |
How to get values from listview and display it to textbox using sql database ? and then i can update the items in listview using a button..then refresh the listview after i click the button... tnx for the help in advance..im just a newbie in vb.net  | |
![]() | I'm getting my ArrayList from a service and populate my ListView with it when user creates the widget. I have 3 button on my widget and I want to modify/filter the data in the ListView by button click. I saw examples of pending indent but I couldn't reach my ArrayList … ![]() |
I am working on project, where i want to show multiple list view (different design layout using different layoutsa for lists) using one list adapter class, in one Main Activity class. Like i want to show first list view on first button click, and then i want to show second … | |
Hello Friends I am facing a little problem that I want to sort my records according to date I mean to say I want to show the upcoming records based on dates on the top in ascending order I have a complete working code to fetch from the database but … | |
List Fragment height is not working properly, it only shows 1st row of list, other rows of list dont show. I used wrap content for height but not working. If i run Fragment directly it shows all rows but if i add fragment in my main activity its show single … | |
Dear Daniweb friends, I created adapter like this: public class PromotionAdapter { String code = null; String name = null; String continent = null; String region = null; public PromotionAdapter(String code, String name, String continent, String region) { super(); this.code = code; this.name = name; this.continent = continent; this.region = … | |
I need to get user manipulated data out of my WinJS listview and convert it to JSON, but I can't figure how to access the data? Any help would be appreciated! | |
I have a listview component with the following simple items: Name Size Fixed Lens ------------------------------- camera1 35mm Yes camera2 16mm No I'm using C# and want to edit various items but the following code give me value '2' is not valid for index: listView1.SelectedItems[0].SubItems[2].Text = "Test"; What am I doing … | |
![]() | 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 … ![]() |
![]() | 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 … ![]() |
![]() | Hello everyone, was looking to see what was availble in listview1.columns.add.... and found this ListView1.Columns.Add("ID", FontDialog, HorizontalAlignment.Center) how would i use this to change the font in listview columns.? the rest of the code... ListView1.Columns.Add("Weekday", 100, HorizontalAlignment.Left) ListView1.Columns.Add("Fuel Date", 80, HorizontalAlignment.Left) ListView1.Columns.Add("Fuel Time", 80, HorizontalAlignment.Left) ListView1.Columns.Add("Location", 60, HorizontalAlignment.Left) ListView1.Columns.Add("Pump", 50, … |
[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]); … | |
i have a listview connecting to xampp,then i want the data of all listview can be add to my report using report viewer?how can i do that. pls help.. <snip> | |
I have a multicolumn listview. There are three button Add, delete and Updata. List is working fine, it add, delete and update list data. But i want to save every row inside listview when i click save button. Bellow is my XAML. <TextBox Canvas.Left="12" Canvas.Top="12" Height="23" Name="textBox1" Width="120" TextChanged="textBox1_TextChanged" KeyDown="textBox1_KeyDown" … | |
Hi all, I have an ArrayList that contains 70 items. I would like to display these items in Listview. Therefore, I used the following code. However, When I press the button, program will only display the first seven items in the arrayList. The rest of items are not being displayed. … | |
imade this query and named it as vwOwnerAnimal. my problem is that i don't know how to display it using listview. can anyone pls help me. SELECT tbowner.owner_code, tbowner.owner_name, tbowner.owner_add, tbowner.owner_cn, tbowneranimal.a_name, tbowneranimal.a_breed, tbowneranimal.a_age, tbowneranimal.a_sex FROM tbowner INNER JOIN tbowneranimal ON tbowner.owner_code = tbowneranimal.owner_code; | |
could anyone tell me how to dynamically select an item in a listview?? i tried `listview.setSelection(1);` and `listview.performItemClick(listview,3,listview.getItemIdAtPosition(3));` both of them don't work..please help me. ![]() | |
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 | |
Hi there, I searched a lot and all the thread i viewed isn't solving my problem. I don't what's wrong with my code. First of all, i am kinda new to android programming as i just recently move from web programming to android programming. I have a listview and it's … | |
I'm making a android app using Java, i want to make a 7 days schedule layout that can be moved horizontally centering the current day to the screen and each column can be scrollable and contains a list with a variable number elements, each element contains images and text; and … | |
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, … | |
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 … | |
Hi, I'm not sure if this is the correct section to post my question in, but since my problem refers to xaml scripting I guess so. I added a listview in my win store app from which the user can choose among several elements and click the one she wants … | |
Hello daniweb, I would like to us if it possible to search using two boxes from listview in vb6… First text box is for company name then the second box is for Number…the idea is that search first in the first textbox(companyname) then the second textbox (number)will search based on … | |
this line is throwing error "type mismatch" where lst is parameter as string/... plzz help | |
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 … | |
Hi guys, i wanted to find out if its possible to use just a single listView for different activities. For instance i have three activities (Pending Jobs, Incoming Jobs, Closed Jobs) which are supposed to use a ListView, as at now i have created ListViews for all three activities but … | |
Does clear use removeAll method for listViews? I have a program that reads a file and stores the data in multiple arrays. I then use that data from the arrays to display them in a ListView, TextFields, a ComboBox, and a TextArea. I am also using an ActionListener to get … | |
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 … | |
I have a 5 listview listview1 has two columns listview2 has one column listview3 has one column listview4 has one column listview5 has five column now i want this scenario in every column of listview5 in listview5 columns first column of listview5 is equal to listview1 first column the second … | |
I Have A DataTable In MSAccess TbJform and I want to Show the Columns of TbJform in ListView.................The Columns Are JformNo,JformDate,PartyName,Bags,Packing,Loose etc.............now what sholud i do to show the all the colmns in listview... | |
Hi EveryOne, Can I ask your help/suggestion: click a button to open popup window, how can i carry the one of col. info to parent window's text box when user double click the row in listview in popup window. I have a code collected in the online for PopUpform: private … | |
how can i display selected records from my database(phpmyadmin) in listview using a search button? any reply will be a great help for me.. thank you. | |
hi, is it possible to sum all the items/value inside the columns of a listview? here's the situation.. assume that... Product Price J&J 45 <-----inside listview M&M 35 <-----inside listview ___________ 80 <------this will be displayed in a label please, i need help.. | |
how to make this print fit to page my listview data doesn't fit in the page help please Private Sub PrintDetails(ByRef e As System.Drawing.Printing.PrintPageEventArgs) Static LastIndex As Integer = 0 Static CurrentPage As Integer = 0 'Getting the current dpi so the textleftpad 'will be the same on a different … | |
hi, can somebody help me? i am using visual basic 6.0 with microsoft access 2003 database i have a form that view the data from the database through the listview my problem is it says Compile Error: Method or data member not found heres my code Private Sub Form_Load() Dim … | |
Hi everyone, I am quite new to vb.net. Recently, I've been learning about Oledb commands and it's ability to save records in a form to a database. So, I started a project and now I am stuck. Here's the scenario: The form comprises of several comboboxes, a listview box and … | |
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 … | |
how to avoid duplicate lvList DoubleClick() Dim line = lvList.SelectedIndices(item.Text) lvPrint.Items.Add(lvList.Items(line).Clone()) | |
 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 … |
The End.