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
Replies
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
I do have it populating with a value for each column yes, I still have had to remove multicomumns, I will try to create a sample to reproduce.



Now I have another issue, my combobox does not properly display the control when it is disabled, the control itself is disabled, and you cant do anything with it, but the data value appears to be enabled, this naturally causes my end user much confusion.



Picture worth 1,000 words.




Keith Chisarik
Attachments
cboDrawError.jpg (123 views, 13.00 KB)
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
OK...I have created a sample that uses the multi-columns as well as the enabled and disabled states....they are both working in the sample.  So you might compare properties to see if there is something else that may need to be set in order to produce your behavior.  Thanks.
Attachments
ComboTesting.zip (118 views, 124.00 KB)
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