Finding a certain cell in gridview through the use of column and row

Posted by newName on Stack Overflow See other posts from Stack Overflow or by newName
Published on 2010-04-19T03:32:28Z Indexed on 2010/04/19 3:33 UTC
Read the original article Hit count: 333

I have a populated gridview that consist of template fields. I would like to find/check a certain number of cells using values of rows and columns.

Eg:


|Time|col1|col2|col3|col4|col5|

|1200|------|-----|-----|------|-----|

|1300|------| -X- |-----|------|-----|

|1400|------|-----|-----|------|-----|

lets say i have the value "1300" for the row and the column header text "col2", I would like to find the cell marked "X" and check for some condition and change the text if necessary (col1 - col5 are template fields made up of labels and buttons, so therefore base on certain conditions i would like to show/hide the labels/buttons or change the text for the labels)

Thanks

© Stack Overflow or respective owner

Related posts about datagridview

Related posts about gridview