c# - Control.DataBindings.Add breaks with period in data member name -


i trying add binding using control.databindings.add(). issue having data member name has period , space in it("foo. bar"). when try add binding pass in string "foo. bar" 1 of arguments , exception "cannot find datamember "foo.".

is there syntax need use pass datamember name in when has period in it? tried adding "[]" around name no dice.

thanks in advance.

after digging around find solution problem discovered if make datasource collection (even of 1 item) .net 4.0 implmentation work....

arraylist list = new arraylist();  list.add(mydatasource);  binding binding = new binding(propertyname, list, "dotted.path.name");  control.databindings.add(binding); 

hope helps....


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -