Prev: ToolStrip - how I can make rectangle on the last selected item ?
Next: checking whether the current object is a specific class.
From: cayvbnet on 10 Jun 2010 13:52 I want to get the first selected row of DataGridView Selected Rows. The goal is that I would hold down CTRL or SHIFT and select multiple rows, then I could click a button or menuitem and update all selected rows with a value from the first selected row. For example in crystal reports you hold down shift and click multiple control and select Same Width and it resizes all to Width of the first one you clicked. Datagridview seems to works if you the select in order going down the grid, but from bottom to top its different. If I could find out the direction, then i could take the first and not the last or.... Help! |