How Do I?

[How Do I:] Implement Command Buttons for Individual Items

By Chris Pels|34 minutes|
In this video Chris Pels will show how to handle events associated with a button control in each item of a data-bound control like a ListView control. First, see how these data-bound controls have standard button event handlers for standard operations like Edit or Delete. Next, learn how to add a button which performs a custom action and how to handle events for this custom button action. Finally, see how to pass data to the custom event handler for identification of the item where the button click originated.

DOWNLOADS: Code (C#)|Code (VB)|MP3|MP4|WMV

This article was originally created on July 24, 2008

Author Information

Chris Pels

Chris Pels – Chris has been instrumental in the architecture, development, and implementation of a wide variety of business systems and databases as a technology consultant since 1986. He has extensive experience in business analysis, technical specifications, database design, several programming languages including C# and VB.NET, and statistical analysis. He holds a Ph.D. from The University of Michigan and has been a speaker at Microsoft TechEd, Microsoft DevDays, VSLive, numerous events in New England