B Brian Henry Nov 23, 2004 #1 is there a simple way to get the currently selected row's key in a bound data grid in winforms? thanks
is there a simple way to get the currently selected row's key in a bound data grid in winforms? thanks
D Doug Bell Nov 23, 2004 #2 Brian, Is this what you want? Dim intMyRow As Integer Dim cellItm As DataGridCell Dim MyKey As Integer cellItm = MyGrid.CurrentCell intRow = cellItm.RowNumber MyKey = MyGrid(intRow, 1).ToString Doug
Brian, Is this what you want? Dim intMyRow As Integer Dim cellItm As DataGridCell Dim MyKey As Integer cellItm = MyGrid.CurrentCell intRow = cellItm.RowNumber MyKey = MyGrid(intRow, 1).ToString Doug
B Brian Henry Nov 23, 2004 #3 thanks! Doug Bell said: Brian, Is this what you want? Dim intMyRow As Integer Dim cellItm As DataGridCell Dim MyKey As Integer cellItm = MyGrid.CurrentCell intRow = cellItm.RowNumber MyKey = MyGrid(intRow, 1).ToString Doug Click to expand...
thanks! Doug Bell said: Brian, Is this what you want? Dim intMyRow As Integer Dim cellItm As DataGridCell Dim MyKey As Integer cellItm = MyGrid.CurrentCell intRow = cellItm.RowNumber MyKey = MyGrid(intRow, 1).ToString Doug Click to expand...