T
Thomas Due
Hi,
I have a DataGridRow which i fill with data from a DataAdapter. Now
when the user selects a row in the grid, how do I find out which row
datarow in the dataset is "selected"?
I got this to work in asp.net 1.1 fairly easy, but how do i do it in
winforms 2.0?
I know I can just use SelectedRows[0].Cells[0].Value to get the value
of the first cell in the selected row, but this is not what I want.
What I basically want, is to be able to know which DataRow each
DataGridViewRow represents.
--
Thomas Due
Posted with XanaNews version 1.17.5.9
"If you know the enemy and know yourself, you need not fear the result
of a hundred battles. If you know yourself but not the enemy, for every
victory gained you will also suffer a defeat. If you know neither the
enemy nor yourself, you will succumb in every battle."
-- Sun-Tzu
I have a DataGridRow which i fill with data from a DataAdapter. Now
when the user selects a row in the grid, how do I find out which row
datarow in the dataset is "selected"?
I got this to work in asp.net 1.1 fairly easy, but how do i do it in
winforms 2.0?
I know I can just use SelectedRows[0].Cells[0].Value to get the value
of the first cell in the selected row, but this is not what I want.
What I basically want, is to be able to know which DataRow each
DataGridViewRow represents.
--
Thomas Due
Posted with XanaNews version 1.17.5.9
"If you know the enemy and know yourself, you need not fear the result
of a hundred battles. If you know yourself but not the enemy, for every
victory gained you will also suffer a defeat. If you know neither the
enemy nor yourself, you will succumb in every battle."
-- Sun-Tzu