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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -