Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




Freeze The Columns Of List View Control


Hi Gurus, I want to freeze the columns of a Listview control in Report view mode. Is there any property of List View or any other code example to show me how to prevent the columns to be resized by the user?Help me plz, it is really necessary.Waqas...




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
DataGrid Control And Freeze Left Columns
I would like to freeze the left column of a data grid control so that it will stay on screen while scrolling to the right.

I have found a solution by setting up two datagrids showing only the second column (first one is hidden) in the first datagrid, then the second grid shows from the third column (first two hidden).

The only problem I have is the left row delimiters show between the two data grids and when I overlap them to get rid of the one, the scroll bar left marker is also overlapped.

Anyone have any ideas how to fix or freeze the left columns while scrolling to right?

TIA rasinc

2 Columns In List View:
i ahve a list view box, when i click the add button, i need to be able to add:
add.text in the first column
desc.text in the second column

but i can only get add.text in the first column.......

Ordering Columns In A List View
I know I can use the ascending and descending properties to order the first column in a list view, but how can I order the other columns as well?

Listview Columns In List View
I am trying to use Listview to import data from an Access table and I only want to use the list view not the list report. The data imports OK and populates the list OK into (in this case with the quantity of data imported) 4 columns.

Trouble is, all the data is truncated and I can find no way of setting the column widths as you can in the normal list box. I do not have any sub-items, just a single list so I do not need to set up any column headers.

List View Select - Multiple Columns
I have a listview control with two columns...

1. File Name
2. Extension

When I selected the file I return the file name, but if i want to retrieve the properties regarding the file i need the extension which is in column 2...

This will get the information in column 1 (File Name)

Set objFile = objFSO.GetFile(DirList.List(DirList.ListIndex) & "" & lstFileList.SelectedItem.Text)

How do I get it so that it gets the info in column 1 and adds the info of column 2 to that string? i.e.

file name extension
mydoc doc
myvideo avi
myemail eml

i want it so that when i click on mydoc the string becomes... mydoc.doc, any ideas? thanks
- gabe

How Do I Hide/unhide Columns In A List View?
I want the user to choose the columns for a specified output though all the columns will be filled

with data , i want to display only those columns which the user selects.Currently i make the width

of the hidden column as - 0 but that the user can just keep his mouse on the header and drag to

see the hidden column. How do I actually hide it???

Sorting On DATE Columns In MS List View
Does anybody know how to get this to work?

The listview seems only capable of accepting strings as it's items so dates have to be converted to text and therefore are sorted as text.

How can I get around this?

List View Find Text By Corrosponding Columns
Hi, i have a list view with 2 coumns and it retrieve information from a server and it contains different amounts of information at once.

What i need to do is locate in the first column of the listview anything containing
the index "hostname" then go retrieve the hostname which would be in the next column in the exact row. So it looks like this

Column 1 - Column 2
=====================
ip add - 192.168.blahblah
hostname - TheTestName

i want to retrieve "TheTestName" by finding the column "hostname" but i have no ideas how to achieve this. If anyone could help me out that would be great.

2 Qs : Timer And How Do I Hide/unhide Columns In A List View?
hi,
2 questions
For a listview, I want the user to choose the columns for a specified output though all the columns will be filled with data , i want to display only those columns which the user selects(Like we have it in windows explorer). Currently I make the width of the hidden column as - 0 but that the user can just keep his mouse on the header and drag to see the hidden column. How do I actually hide it???

Second question:

I have just recently find out that one cannot set the interval time of a timer for than 65000 millisecs that is apporx a minute. How do I set the interval of a timer for more than a minute say 3 minutes?

Thanks.

How To Sort Columns In List View -- Just Like Windows Explorer
Hi,

I am using ListView Control.. I want to sort the listview on a particular column when user selects it. Is there any direct way of doing this.. And can I set colors to rows in a Listview control.. Like I have a situation where I want alternate colours to be displayed.. Is it possible

Regards

Surya Prakash

Visual Basic List View Control To View Network Computers
Hi,

I am working on simple network connect utility and ready with the functinality. But I am stuck at a very important aspect of the GUI where I need a List View Control that will view the computers from the available LAN domains. And will let us select a particular computer on expanding the domain List Item. If not a list view then a treeview rather.

Also will this control let me select a NETWORK COMPUTER ONLY but not shared folders on its individual drives. Only computers has to be selected. Not the nodes (folders) shared at them.

Thanks.

Vinitsankhe.

Freeze Columns
Hello:

I wrote a project using VB6.0 and Access2000. I tried to load records from a Database into the Datagrid (about 30 records)for read only. My problem is I would like to freeze the first 3 columns on the grid when using horizontal scroll bar to see all columns. Does anyone know please help. I'm very appriciated. Thanks alots

P.S.

I know The grid has a property called fixedcols then set this property to 3 and that's all, but there aren't fixcols in the Datagrid properties. Is there another way? Please help...Thanks

Editing List Items And ListSubItems In List View Control
Hi,

It is possible to edit ( add an entry ) the first column of a ListView control. By setting to automatic mode.

How do I edit the subsequent columns ( The listSubItems ).

BB

PLEASE HELP - How I Can Freeze 3 Columns From My FLEXIGRID
Please help

anyone know how i can freeze the Flexigrid column, i wan to freeze as in when i go to the right of the of the grid going to for example column 16, i want the first three column not moving.

This is to see the lastname, firstname and the middlename, shows while i am looking for the other information in the column. Is this can be done?

Thank you

Freeze Columns In VSFlexgrid 7.0
I am using VsflexGrid 7.0 in my project, but i don't know how to freeze some columns that user can not change value on it.
May anyone help me ?
Thanks !

Datagrid : Row Headers Or Freeze Columns? -
Hi,

I have a datagrid that I need the first column to be visible at all times, I either want to be able to freeze the column in the way that Excel can do this, or put the first column into the Row Header but don't know if that's even possible.

Any help or advice on this is greatly appreciated.

Many thanks,

Rob



Edited by - TSSR_Rob on 2/28/2008 9:13:45 AM

List Control With 2 Columns
Hi there! Does anyone know how I can have a list control with 2 columns? Or better still, with 2 headers at the top of the list control, in addition to the 2 columns? Thanks a lot! :--D


I seek the true meaning of C++. (besides caring and pampering sweet and cute li'l gurls, that is)

Columns In A List Box Or An Alternative Control?
I'm currently displaying data in a list box which was fine as each line was a single field of a record in a recordset. Now I need to display more than one field from each record and while I can just concatonate the information it obviously looks untidy as there is no formatting. Is there a way to set up tabs and columns in a listbox or is there a similar control that would allow this? All I need to be able to do is to double click on a row (representing a record) and have the control be able to return a value specific to that row ( I currently use the ItemData property of the ListBox.)

Thinking about it something that resembles the list of e-mails in a box in Outlook would be a nice looking solution if it were very easy (I have very little time!) to implement.

Thanks!

Columns In A List Box Or An Alternative Control?
Sorry, I chose the wrong forum and can't see a way to delete a topic.



Edited by - g.soper on 5/2/2002 7:53:49 AM

List View Control
Just trying to learn how to use this control, and MSDN is somewhat limited on the info.
I have listView set to 3-lvwreport. FullRowSelect property set to True. Made column headers in the property sheet for the control. Added ListItems and ListSubItems for each header. Now I am trying to get the text of each ListItem and each SubListitem form the selected Row.
This code only returns the ListItem.

Code:
Private Sub ListView1_Click()
MsgBox "Selected " & ListView1.SelectedItem

End Sub
Any help?
Thanks
Michael

List View Control
Dear all,
My form contains one listview box contail 10 headers and no of entries for for this will vary from time to time. I have to move the listview contents to a record set . pls help


Dana

List View Control In VB 6.0
Hi there,

i have created one form in vb in which used one Listview control on my form i have enter the data in Listview control (like Datagrid) using following command ..


VB Code:
Dim mylstitem As ListItem With ListView1               Set mylstitem = .ListItems.Add()         mylstitem.Text = ii                   tempstr = ii Mod txtNoOfPrinter.Text         mylstitem.SubItems(1) = array1(i, 0)         mylstitem.SubItems(2) = array1(i, 1)         mylstitem.SubItems(3) = printv1                End With


it's work fine and showing me all requred data in required format now i want to retrive data from this Listview control how can i retrive it ??

if any one know answer pls help me regarding this

List View Control
Dear Friends,

How can I get a list view control to put on a form? I can not see such control. Please help.

Seema_S

List View Control
I have a list view control which displays the items from a csv file. What i need to know is if it is possible to autoscroll the list view control. For example, if there are like 20 items listed and number 15 is getting processed the user has to scroll down the list view to see item 15.. is there a way to "autoscroll" the current item??

List View Control.
Hello all, how are you? Well I am having a problem with my list box control cuz it will only hold so many items so I was wondering if someone could tell me or give me a specfic url that will teach me how to use a list view?(Need the basics like adding items, loading lists, saving lists and so on) Well thanks in advance for some help

List View Control
Hi,
Can anyone tell me how to count selected items in a listview control?

Thanks

List View Control
I have a combo box that contains all user name. When click on name, a list of order that belongs that name will display in list view. How to clear data after you change name in combo box. Thanks

List View Control
How can I add data to ListView if I have 3 columns?

List View Control
Hello
Am having a table which consists of 37000 rows. In my VB application am using List View Control, to which am adding 37000 rows. The loading time it is taking around 1 to 2 min, but when i use the command listview1.clear then it is taking nearly 15 to 17 min, to clear the list view control.

I had done this by using the windows common control service pack 3.0. After that to test i have changed the windows common control service pack 3.0. to 2.0, then for loading time it is taking maximum, but to clear the list view it is clearing with in seconds i.e. less than one min.

So suggest me how to over come this problem. Do we have any API control to add items in the list view control and clear the list view control.

List View Control
Hello everybody

I have a Listview control with the style set to Icon (32x32) , how do I stop the user being able to drag the icons? What happens at the moment is a user can drag the icon to the side of the box and the scroll bars goes Ape.

Any ideaz??

G:)

List View Control
I got a list view control and a check box next to it which will select all the item in the list box. my question is

How do highlight the all the item in the list view when I click on the check box?????

How Do I Use The List View Control?
ok, in the list control I have headers, but I dont know how to add text to a full row under each header. How do I?

List View Control
Hi everyone.

I have a ListView control (in Report view) in my program. When I click on an item in it (highlight a line), wait a few seconds, and click on that same line again, it goes into Edit Mode. In other words, it allows the user to change a value, which is not what I want.

Anyone know how to prevent the listview control from doing this. I've looked in help, but it didn't help.

Thanks.

List View Control
How do i select and item when they hit the check box next to the child on the form...

example

myname
x yourname

ill click yourname but myname has focus... how do i prevent this...

thanks

brooke

List View Control
I want to create a list of items along with check boxes before that item using listview control

Also I have to select list of items without checking using SHIFT+DOWNARROW , if i click on any one of check box, When i hold SHIFTKEY, all selected boxes should be checked. if i uncheck any one of the checked item, when i HOLD SHIFTKEY that particular item should be unchecked.

How is it possible please send me the source code.

THanks in advance.

regards
Kiran

PS send a cc to krallabandi@india.osius.com

List View Control
hey there,
can anyone help me how to work with the Listview Report view. I want three
column: Time, URL, Title to be added from a file. How can I do it? plz help

Service provided by MaGlobe Prepaid Worldwide Internet Access (visit www.MaGlobe.com)

List View Control
Hai Friends,

Using this post(#1), three fields (Number, Name, Salary) were displayed in a list view control from my database.
http://www.vbcity.com/forums/topic.asp?tid=144482&highlight=list%7Cview

When I click the particular row in the listview (ListView1), i need to display the number, name, salary in aproppriate text boxes (txtNumber, txtName, txtSalary).

Thanks!
Suresh

List View Control
Hi all,

I want to add backcolor for list view control in row wise in report view.
how can i.

anybody help me.

thanks a lot.

List View Control
I'm using the list view control. The list view control is set as the report mode. Hence, each item with it's subitem are arrange in a line like a list box. But as I select one of the item, only the one at the extreme left is highlighted. How do I set it to highlight the whole line of the item? Thanks a lot.

Regards,
Sheryl

Q About List View Control
Does anyone have any idea about how a list view control works for 50000 records? I have an access database with 6 fields. Is there any alternative for list view contol?

Thanks

Resize List View Control
Dear list,

I manage to auto resize the List View column based the longest string in the subitem using the following code,

Private Sub Resize_List_Column()
LockWindowUpdate lvwList.hWnd
For col = 0 To lvwList.ColumnHeaders.Count - 1
SendMessage lvwList.hWnd, LVM_SETCOLUMNWIDTH,col,
LVSCW_AUTOSIZE ' The magic of auotosize
If lvwList.hWnd > lvwList.ColumnHeaders(col + 1).Width Then
lvwList.ColumnHeaders(col + 1).Width = lvwList.hWnd
End If
Next
LockWindowUpdate 0 ' Unlock
End Sub

Now, my problem is, when there is no record to show in the subitem, my header will resize to lowest width, i can't even see my header description.

How can i resize the list view including the column header and the subitems string?

Please assist. Thank You.

List View Control Is Missing
i have an app that uses the list view control. it used to compile, but now when i compile it says user type not found , and highlights the list view in the code. when i go to components to add "microsoft common controls" its not there. i believe this is the list view is part of that component, but if i cant find the component i cant add it. it worked before i put it into source safe though and nobody touched it since me. anyway, can anyone help with this??

Help Required On List View Control
How can I put the arrows on the column headers of a listview control? I want to use it to indicate the sorting order of the column ..........

How To Select Whole Row In List View Control
I have a list of records that selected from SQL server and I display it in list view. Now I need to select a whole row to view details. Does anyone know the code how to select the whole row in list view ? Thanks

Resolved List View Control
I want to use a listview control only to allow the user to select a full row from it, but dont want to let him/her to change the values there. How can I make it?

List View Control Problem
Hi


I have some problem in list view control… I have also attached my control.. I want to pass a record set to list view control… and then trying to display the record set in the lsit view control..
But there are some problem which I m encountering…

·That if I tried to pass the recordset to list view it gives me a type mismatch error.
·And I cant figure out how to populate a record set in a list view….. that’s it the sub itme .. thingy is not working...
·I ma also unable to include a check box in start of every row.
·Can menu be added to an active x control

List View Control Question
I have a question about the list view control. I'm new to using it so bear with me here.

I'm trying to find a way to build my own ordering system.
The previous version of my program had 6 of each of the following, chkbox/chkbox/text/text/masked edit.
You would fill each one in if needed and if you needed more than 6 lines of entry for an order, I set it up so you could link orders together.

It worked somewhat, but there are a few bugs in the program that are evading my debugging, and I never liked the linking idea anyway, so I'm trying to find another way.

I considered using just a listbox, but that won't let me put the checkboxes in front of the items, and still have the ability to change them once there in the list.

Somebody told me there was a way to do that in a listbox. I have gotten it to add items to the list, but I can't find how to add the checkboxes infront of the line.

Any help would be appreciated.
Thanks in advance.

Print Using List View Control
I have created a listview control that is populated from the database . Is there a way to print the data from this control to the printer ?. Thanks in advance for your help.

List View Control Co-ordinates
Im using a list view control and have 15 columns with 'x' number of rows which is determined by an sql lookup, i want to be able to double click on any row, column point and determine its cell reference(co-ordinates) e.g. 1,2 or 6,7 .

Copyright © 2005-08 www.BigResource.com, All rights reserved