NComboBox.Items[ ].Tag is overwritten?


Author
Message
Miles Thornton
Miles Thornton
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
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


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search