Forum Discussion

raj5c1's avatar
raj5c1
Occasional Contributor
9 years ago

clickcell() on grid's cell after resizing the grid

I am able to  do the grid.clickcell(rowindex,ColIndex) on Microsoft DataGridView. But Once i expand the grid clickcell not working properly. i.e clickcell(0,3) is performing click on (0,2) cell. am i missing recalculating the size or need to mention the coordinates? 

  • What if you do click cell with column name?

    eg...Grid.ClickCell (2, "Customer Name"); as mentioned here

     

    Also usually those column and row numbers are 0 based

    ie index of first column is 0 second is 1....etc

     

    If there is a hidden column TC would count that as well.

  • NisHera's avatar
    NisHera
    Valued Contributor

    What if you do click cell with column name?

    eg...Grid.ClickCell (2, "Customer Name"); as mentioned here

     

    Also usually those column and row numbers are 0 based

    ie index of first column is 0 second is 1....etc

     

    If there is a hidden column TC would count that as well.