Profile Picture

NComboBox.Items[ ].Tag is overwritten?

Posted By Miles Thornton 14 Years Ago
Author
Message
Miles Thornton
questionmark Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)Junior Member (17 reputation)

Group: Forum Members
Last Active: 14 Years Ago
Posts: 17, Visits: 1

I have noticed a behavior that is causing me problems; IDK if this is a Nevron bug or not. Can I get someone to look at this for me?

Since I manually load the Combo-Box picklist Items[<n>].Text with the description, I use the Items[<n>].Tag to hold the DB integer Key value of the record so I can locate it later for posting back to the DB.

Unfortunately, the Nevron NComboBox.Items[<n>].Tag is being overwritten by the contents of the .Items[<n>].Text property by the time I go to get it.

So, this operation, which works well with native components, fails:

int keyValue = int.Parse(this.ncboPreFixturesList.Items[this.ncboPreFixturesList.SelectedIndex].Tag.ToString());

Are you guys doing this? I haven't been able to find a place in my code where this could be happening...

Thanks,

-Miles






Similar Topics


Reading This Topic