473,385 Members | 1,449 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Details View in Listview

hi all

i m trying to make a windows explorer in my project

where i need details view with some columns.

but when i give this code at form load

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load_

ListView1.View = View.Details

ListView1.Show()
End sub

it doesn't show anything in listview mean just blank listview
it shows only vertical scroll bar

but when i use
ListView1.View = View.List
then it shows all files and folder
since i want to show some attributes in same row for that file
i have to use details
can anyone help me to show ViewDetails in Listview
without this i cnt go with next step
thanks in advance

regards
Dilip Yadav

Nov 23 '05 #1
4 15088
Dilip,

Did you know that in the 101 samples is a basic sample how to build a kind
of windows explorer.

Create an Exlorer style application

http://www.microsoft.com/downloads/d...displaylang=en

I hope this helsp,

Cor
"Dilip" <ya*********@gmail.com> schreef in bericht
news:11**********************@g49g2000cwa.googlegr oups.com...
hi all

i m trying to make a windows explorer in my project

where i need details view with some columns.

but when i give this code at form load

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load_

ListView1.View = View.Details

ListView1.Show()
End sub

it doesn't show anything in listview mean just blank listview
it shows only vertical scroll bar

but when i use
ListView1.View = View.List
then it shows all files and folder
since i want to show some attributes in same row for that file
i have to use details
can anyone help me to show ViewDetails in Listview
without this i cnt go with next step
thanks in advance

regards
Dilip Yadav

Nov 23 '05 #2
You need to add columns to your list view. For example:

ListView1.Columns.Add("Name")
ListView1.Columns.Add("Attributes")
....
Dim item As ListViewItem = ListView1.Items.Add("MyFile")
item.SubItems.Add("R-H")
/claes

"Dilip" <ya*********@gmail.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
hi all

i m trying to make a windows explorer in my project

where i need details view with some columns.

but when i give this code at form load

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load_

ListView1.View = View.Details

ListView1.Show()
End sub

it doesn't show anything in listview mean just blank listview
it shows only vertical scroll bar

but when i use
ListView1.View = View.List
then it shows all files and folder
since i want to show some attributes in same row for that file
i have to use details
can anyone help me to show ViewDetails in Listview
without this i cnt go with next step
thanks in advance

regards
Dilip Yadav

Nov 23 '05 #3
hi Claes & Cor

first of all thanks 2 both of u

well i have already used this cod
ListView1.Columns.Add("Name", -2, HorizontalAlignment.Center)
ListView1.Columns.Add("Type", -2, HorizontalAlignment.Center)

but still it doesnt show anything at listview

i get only vertical scroll bar
Do u people have any other suggestion your most welcome
if u send reply at group

i ve searched many sites but ,not any code ,help me for that

rest is fine
Regard
Dilip yadav

Regard

Nov 23 '05 #4
hi claes & Cor

i have solve my problem there
was i little mistake

that i have given the
code
listview1.clear( )
at wrong place that was in Form load block
but it shoud be come with that Search Button Click Event
where i click search for Browse...........

really i got a good response
thanks again

Regard
Dilip yadav

Nov 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Paul Zanbaka | last post by:
I have a teamplate field that uses a drop down list in a details view . The drop down lit use its own data surce (DataSource 2) But I am trying to make the default value from DataSource1 (same as...
0
by: Pradnya | last post by:
I want to allow user to change header text for details view fields . .So, I am trying to create details view at runtime..How to do that ? How do I fields to it..? .......Pradnya
0
by: Chicagoboy27 | last post by:
I am wondering how to set an object datsource or any data source for a dropdown list that is a details view. Here is a brief set up. I have a details view that lists a bunch of information. when a...
0
by: amily | last post by:
hi, i designed a page in details view control in asp.net. for entering information in the database. there is one column in which we have to write yes or no. so i thought of using a combo box. the...
0
by: Bishop | last post by:
ASP.NET 2.0 I have a SqlDataSource that was created for a gridveiw. I'm using the same SqlDataSource for DB inserts using a Details View. My Details View DefaultMode set to Insert because...
2
by: kamlesh | last post by:
Hi All, I have a question on the ASP.NET 2.0 Details view control I dont like using the SQLDataSource to bind the data to the DetailsView control.. I dont like the idea of placing Queries in...
0
by: lieufirst | last post by:
hi all, well i got a grid view and a details view i linked the details view to the grid view so when i select a field it appers in the details view but the problem is when i surf to diffrent pages...
4
by: randy.buchholz | last post by:
Been fighting this one for a while, looking for help. I have a simple page with a grid view and details view (just managing a single table). The details view is primarily used for creating new...
5
by: inungh | last post by:
I have a details view on my details form and has SQL statement and paramter as following: <SelectParameters> <asp:QueryStringParameter DefaultValue="213-46-8915" Name="au_id"...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.