G Guest Oct 25, 2006 #1 Morning people, I need to access to all of the rows and cols of a gridview and get the value of everyone, how can i do this? Thank you.
Morning people, I need to access to all of the rows and cols of a gridview and get the value of everyone, how can i do this? Thank you.
P Patrick Steele Oct 26, 2006 #2 Morning people, I need to access to all of the rows and cols of a gridview and get the value of everyone, how can i do this? Click to expand... for(int x = 0 ; x < gridView1.Columns.Count ; x++ ) for(int y = 0 ; y < gridView1.Rows.Count ; y++ ) object value = gridView1[x,y];
Morning people, I need to access to all of the rows and cols of a gridview and get the value of everyone, how can i do this? Click to expand... for(int x = 0 ; x < gridView1.Columns.Count ; x++ ) for(int y = 0 ; y < gridView1.Rows.Count ; y++ ) object value = gridView1[x,y];
G Guest Oct 27, 2006 #3 I try it and the gridview.columns.count is always zero, and the gridview is full of data Patrick Steele said: Morning people, I need to access to all of the rows and cols of a gridview and get the value of everyone, how can i do this? Click to expand... for(int x = 0 ; x < gridView1.Columns.Count ; x++ ) for(int y = 0 ; y < gridView1.Rows.Count ; y++ ) object value = gridView1[x,y]; Click to expand...
I try it and the gridview.columns.count is always zero, and the gridview is full of data Patrick Steele said: Morning people, I need to access to all of the rows and cols of a gridview and get the value of everyone, how can i do this? Click to expand... for(int x = 0 ; x < gridView1.Columns.Count ; x++ ) for(int y = 0 ; y < gridView1.Rows.Count ; y++ ) object value = gridView1[x,y]; Click to expand...
P Patrick Steele Nov 4, 2006 #4 How are you filling the DataGridView? With a datasource? Manually? I try it and the gridview.columns.count is always zero, and the gridview is full of data Patrick Steele said: Morning people, I need to access to all of the rows and cols of a gridview and get the value of everyone, how can i do this? Click to expand... for(int x = 0 ; x < gridView1.Columns.Count ; x++ ) for(int y = 0 ; y < gridView1.Rows.Count ; y++ ) object value = gridView1[x,y]; Click to expand... Click to expand...
How are you filling the DataGridView? With a datasource? Manually? I try it and the gridview.columns.count is always zero, and the gridview is full of data Patrick Steele said: Morning people, I need to access to all of the rows and cols of a gridview and get the value of everyone, how can i do this? Click to expand... for(int x = 0 ; x < gridView1.Columns.Count ; x++ ) for(int y = 0 ; y < gridView1.Rows.Count ; y++ ) object value = gridView1[x,y]; Click to expand... Click to expand...