c# - CodedUI: Find WinTable specific column index -


how column index specifying column name?

code:

wintable uicusttable = new wintable(uicustgrid); int columnindex=uicusttable.getcolumnnames("column1"); 

can somethig this? wont work actually. column placement changes on different windows.

help

try this:

   wintable = new wintable();     var desiredcolumn = a.columnheaders.firstordefault(columnheader => columnheader.name == "column1");     int indexofcolumn;    if (desiredcolumn!=null)    {        indexofcolumn = a.columnheaders.indexof(desiredcolumn);    } 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -