I have a custom application page in SharePoint 2010 created in VS 2010. There are a few custom button controls in the Ribbon on this page. This Ribbon control is implemented using SPRibbon api's. There is a SPGridView on the page that is bound to a datasource. What i want to achieve is enable/disable and show dialog window that is context sensitive that is when an item is selected on the SPGrid, the buton should be enabled/disabled. Also, after selection, and clicking on one button, a dialog window should open up with item id passed to this page.
Thanks... Vinit