c# - StackOverflowException in GetChildRows -


 datarow[] arr;  arr = (datasset.tables["director"].rows[1]).getchildrows("fk_filmdir"); 

visual studio throws stackoverflowexception second row , don't why,it should return 2-3 datarows. what's wrong code?

le:

public void showchildren()         {              int id = listboxparent.selectedindex;              list_film = new list<string>();             datarow[] arr;             arr = (ds.tables["director"].rows[id]).getchildrows("fk_filmdir");              foreach (datarow r in arr)             {                 string s = "";                 s = r[0] + " " + r[1]+ " " +r[3];                 list_film.add(s);              }              listboxchildren.datasource = list_film;             listboxchildren.refresh();               daf.update(ds, "film");             ds.acceptchanges();         } 

this function , exception occurs @ refresh()


Comments

Popular posts from this blog

Change the color of an oval at click in Java AWT -

c# - Unity IoC Lifetime per HttpRequest for UserStore -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -