Error when adding new row, bound combobox


Author
Message
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
Any idea what this might be? I have a combobox populated via BO bound to a field in my "master" BO. I can view, navigate, edit, just not add......



Thanks.





IndexOutOfRangeException

There is no row at position -1.



Source : System.Data



Stack Trace:

at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex)

at System.Data.RBTree`1.get_Item(Int32 index)

at System.Data.DataRowCollection.get_Item(Int32 index)

at MicroFour.StrataFrame.UI.Windows.Forms.ComboBox.DrawDropDownClosed(DrawItemEventArgs e)

at MicroFour.StrataFrame.UI.Windows.Forms.ComboBox.DrawDropDownItem(DrawItemEventArgs e)

at MicroFour.StrataFrame.UI.Windows.Forms.ComboBox.ComboBox_DrawItem(Object sender, DrawItemEventArgs e)

at System.Windows.Forms.ComboBox.OnDrawItem(DrawItemEventArgs e)

at System.Windows.Forms.ComboBox.WmReflectDrawItem(Message& m)

at System.Windows.Forms.ComboBox.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)

at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Keith Chisarik
Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
I will try and produce a sample, but perhaps with this more info you could try it on your end and see if you can reproduce?

I figured that was the case as this is when we custom render.

Isn't multi-column a semi-new feature?

It is...but I am using it in a ton of places in our medical app and as of yet, I have not seen this...but I do believe you Smile  I will keep trying on my end to reproduce.

Also, I am using DB2 but at this point I have mostly moved past the learning curve of using a database other than SQL Server.

I am glad that this has worked out for you.  This should not have any bearing on this particular issue though.

Just as a final thought, you DO have the combo populating with a value for each column, correct?

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Keith Chisarik - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Keith Chisarik - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Keith Chisarik - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Keith Chisarik - 17 Years Ago
Greg McGuffey - 17 Years Ago
Keith Chisarik - 17 Years Ago
Keith Chisarik - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Keith Chisarik - 17 Years Ago
Keith Chisarik - 17 Years Ago
Keith Chisarik - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Keith Chisarik - 17 Years Ago
Keith Chisarik - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Trent L. Taylor - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search