![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to make an enhanced version of the standard list box that appends a prefix to certain items based on another field within the data source. While I could go through and add each row seperatly to the underlying list box, it would seem like I should be able to override something associated with the standard control in order to have it take this action for each item (ondatabound?). Am I right about this and if so, what routine should I override? |
#3
| |||
| |||
|
|
Hi Jeremy, I'm trying to make an enhanced version of the standard list box that appends a prefix to certain items based on another field within the data source. While I could go through and add each row seperatly to the underlying list box, it would seem like I should be able to override something associated with the standard control in order to have it take this action for each item (ondatabound?). Am I right about this and if so, what routine should I override? From your description I don't recommend you write a custom ListBox to achieve your requirement. You can still use the standard ListBox. As to your requirement, how about regenerating the datasource? You can edit the original datasource to add prefix to items and bind the updated datasource to ListBox. Please let me know if you can use this approach to solve this issue. If you have additional questions please feel free to ask. Regards, Allen Chen Microsoft Online Support Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: msdnmg (AT) microsoft (DOT) com. ================================================== Get notification to my posts through email? Please refer to http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications. Note: MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 2 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx ================================================== This posting is provided "AS IS" with no warranties, and confers no rights. |
#4
| |||
| |||
|
|
That being said, must I take the approach of stepping through each data row and adding it manually to the list box or can one of the data binding methods of the control be overridden to perform this action? Thanks for your update. If you need a custom control to do this you can try |
#5
| |||
| |||
|
|
That being said, must I take the approach of stepping through each data row and adding it manually to the list box or can one of the data binding methods of the control be overridden to perform this action? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |