You can programmatically determine which entity records a user has selected in the Microsoft Dynamics CRM Web application grid. Using the information in the article and the sample code supplied in the download, you can develop custom code to perform a desired operation on each entity selected in the grid.
In addition to showing you how to obtain the list of selected grid items, this article shows you how to develop Web application code that makes use of the Microsoft Dynamics CRM SDK and runs under the .NET Framework 2.0. Read the article and download the sample code here: Microsoft Dynamics CRM 3.0: Accessing Selected Records in a Grid.