From: Steve C. <stn...@xm...> - 2005-07-18 21:26:10
|
John Henry wrote: > Schollnick, Benjamin wrote: > > 1) How do I find out what Row the user has > highlighted? I know > > GetSelectedString will return the text, but I'm > interested in finding > > out row #666 is selected. > > > > If nothing else, you can do a match of the list to get > the number. > > if > self.components.myMulList.GetSelectedString==self.components.myMulList.items[665]: > > May be there is an easier way that others can point > you to. > You could cheat. Make the row index either the first column or last column of the row (first if you don't mind it showing, last if you want to 'hide' it), then look at that column in the return value of getStringSelection() for example, if it's in the last column : rows = self.componenets.myMlist.getStringSelection() rowIndex = rows[0][-1:][0] -Steve |