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
Post a Comment