Listview item display

Please support our C# advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2009
Posts: 229
Reputation: avirag is an unknown quantity at this point 
Solved Threads: 19
avirag avirag is offline Offline
Posting Whiz in Training

Listview item display

 
0
  #1
Nov 2nd, 2009
Listview item display:

In my application when I am entering string it compares with formtext of each form.If it matches with
any of the formText ,it displays the image of panel2 that is on each form .These images appears in listview
as a result of matching of two strings(string in textbox and string of formtext)...
Now problem is that when results are displayed in listview ,then the images appears in center and I want to
left allign each image in teh column.
How can I allign the images to the left in the column like we have SNO. alligned to the left in column1.
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 969
Reputation: DdoubleD is a jewel in the rough DdoubleD is a jewel in the rough DdoubleD is a jewel in the rough DdoubleD is a jewel in the rough 
Solved Threads: 207
DdoubleD DdoubleD is offline Offline
Posting Shark
 
0
  #2
Nov 2nd, 2009
avirag, I don't know how to get the control to display exactly how you want. The view set to detail gives you the single column list (what you have now), but I don't know how to cause it to draw left instead of center.

The largeicon view will give you the left justification, but it begins another column as needed to fill with items. The limit on the image width is 256 (you have 230 now I think), so you can't go much higher. I was able to get the single column to the left (your desired view) by resizing the form and control to be just under the width * 2 requirement it needed to display two columns in largeicon view mode, but for this to look nice and achieve the desired result, you would need to rearrange the items you have in top panel in order to still have them visible after shortening the width of the form to shrink your listview panel...

Maybe someone else has an idea...
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,425
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 616
Sponsor
sknake's Avatar
sknake sknake is online now Online
.NET Enthusiast
 
0
  #3
Nov 2nd, 2009
Upload your search engine project again demonstrating the behavior and we will take a look at it............................................................................................................................................
Last edited by sknake; Nov 2nd, 2009 at 6:49 pm.
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Join Date: Jun 2009
Posts: 229
Reputation: avirag is an unknown quantity at this point 
Solved Threads: 19
avirag avirag is offline Offline
Posting Whiz in Training
 
0
  #4
Nov 3rd, 2009
Originally Posted by sknake View Post
Upload your search engine project again demonstrating the behavior and we will take a look at it............................................................................................................................................
Here is the application Sknake..........
In this when results are displaying in Listview, so under Result column images of the results are appearing in the center, i want that image should appears towards left in Result column like we have S.No. towards left in column1.............
I don't want to remove the S.No. Column. I just want that result column items should appear towards left.......
Currently items are displaying in center.............
Kindly help me regarding this..........
Attached Files
File Type: zip CompareString7_New.zip (415.9 KB, 2 views)
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3,425
Reputation: sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of sknake has much to be proud of 
Solved Threads: 616
Sponsor
sknake's Avatar
sknake sknake is online now Online
.NET Enthusiast
 
0
  #5
Nov 3rd, 2009
You need to owner draw the list view and render the picture manually. It looks like there is no formatting for the listview that we can use here. Take a stab at it and post your updated code up here and we'll take a look at it

(You could also consider using a grid)
Last edited by sknake; Nov 3rd, 2009 at 8:48 pm.
Scott Knake
Custom Software Development
Apex Software, Inc.
Reply With Quote Quick reply to this message  
Reply

Message:




Views: 561 | Replies: 4
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC