Comments (3)
Did you create the custom column before calling your LoadItem method? e.g:
ImageListView1.Columns.Add(ColumnType.Custom, "My Group Column")
Otherwise can you please post the stack trace?
Thanks,
Ozgur
Original comment by oozcitak
on 30 Oct 2012 at 8:33
from imagelistview.
Hi,
Thanks for your help.
Yes, I had added the custom column and in fact it seems that this is what is
causing the problem. If I call SetSubItemText on a column that is a custom type
it throws an index out of range error. If the column type is set to something
else I seem to get no errors.
It is easy to replicate the error - Create a form, add an ImageListView object.
Add the following to the form's onload event:
Me.ImageListView1.Columns.Add(Manina.Windows.Forms.ColumnType.Custom, "My Column")
Me.ImageListView1.Items.Add("C:\Users\Quentin\Dropbox\My Pictures\200512221836_00039.jpg")
Me.ImageListView1.Items(0).SetSubItemText(0, "Blah")
When it is run an error occurs on and Items.Add method with the following stack
trace:
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at System.String.Substring(Int32 startIndex, Int32 length)
at Manina.Windows.Forms.Utility.GroupTextAlpha(String text)
at Manina.Windows.Forms.ImageListViewItem.UpdateGroup(ImageListViewColumnHeader column)
at Manina.Windows.Forms.ImageListView.ImageListViewItemCollection.Sort()
at Manina.Windows.Forms.ImageListView.ImageListViewItemCollection.AddRemoveGroupItem(Int32 index, Boolean add)
at Manina.Windows.Forms.ImageListView.ImageListViewItemCollection.InsertInternal(Int32 index, ImageListViewItem item, ImageListViewItemAdaptor adaptor)
at Manina.Windows.Forms.ImageListView.ImageListViewItemCollection.AddInternal(ImageListViewItem item, ImageListViewItemAdaptor adaptor)
at Manina.Windows.Forms.ImageListView.ImageListViewItemCollection.Add(ImageListViewItem item, ImageListViewItemAdaptor adaptor)
at Manina.Windows.Forms.ImageListView.ImageListViewItemCollection.Add(ImageListViewItem item)
at Manina.Windows.Forms.ImageListView.ImageListViewItemCollection.Add(String filename, Image initialThumbnail)
at Manina.Windows.Forms.ImageListView.ImageListViewItemCollection.Add(String filename)
at WindowsApplication1.Form1.Form1_Load(Object sender, EventArgs e) in C:\Users\Quentin\AppData\Local\Temporary Projects\WindowsApplication1\Form1.vb:line 4
Regards,
Quentin
Original comment by [email protected]
on 30 Oct 2012 at 12:50
from imagelistview.
This issue was closed by revision r691.
Original comment by oozcitak
on 31 Oct 2012 at 10:31
- Changed state: Fixed
from imagelistview.
Related Issues (20)
- Items ordering is wrong compared windows explorer HOT 2
- Sorting Images
- Improved support for multipage tiffs HOT 1
- Items Color Changed HOT 3
- Doubt HOT 3
- Problems with displaying item names containing colons HOT 1
- Grouping Images HOT 4
- EXIF data HOT 2
- PersistentCache
- Problems Displaying Thumbnails HOT 2
- Please make internal items public to allow custom renderers HOT 2
- Threads doesn't terminate after Dispose in QueuedBackgroundWorker
- System.Format.Exception HOT 2
- No More Updates were Found HOT 1
- Addition of a drag event HOT 1
- DragDrop HOT 1
- Error on multiple select?
- Enhancement
- Problem with *.ico views > Details
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imagelistview.