Skip to main content
Home Forums Silverlight Programming Programming with .NET - General Datagrid error with usercontrol on first row
2 replies. Latest Post by jkampus on August 12, 2008.
(0)
jkampus
Member
10 points
7 Posts
08-06-2008 12:29 PM |
Hi,
I have a DataGrid where i display a usercontrol per cell under certain conditions,
When I don't display the usercontrol on the first row all works fine, however, when i try to display a user control on any cell of the first row i get a not very specific error that goes something like:
System.ArgumentException: Value does not fall within the expected range.
I posted a sample with the code to reproduce the error, if anyone can give any help it would be great.
The sample is Here, i removed all the code that doesn't bring nothing to the subject.
Any help will be much appreciated,
Best Regards,
Allen Ch...
Star
13862 points
1,803 Posts
08-11-2008 9:14 PM |
Hi
Thanks for your reporting. This issue doesn't repro in the latest bits. I think it has been fixed.
08-12-2008 4:40 AM |
Thanks for the attention.
In case anyone is interessed in a workarround until the next version is launched, i added an empty item to the itemsource of the datagrid, before adding anything else. This row is not visible, because i have all the rows with auto Height. It's not very elegant, but it does the trick.
Joel Campos