Skip to main content

Microsoft Silverlight

Answered Question Datagrid error with usercontrol on first rowRSS Feed

(0)

jkampus
jkampus

Member

Member

10 points

7 Posts

Datagrid error with usercontrol on first row

 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, 

Joel Campos

Allen Chen – MSFT
Allen Ch...

Star

Star

13862 points

1,803 Posts

Answered Question

Re: Datagrid error with usercontrol on first row

Hi

Thanks for your reporting. This issue doesn't repro in the latest bits. I think it has been fixed.

Sincerely,
Allen Chen
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.

jkampus
jkampus

Member

Member

10 points

7 Posts

Re: Datagrid error with usercontrol on first row

 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.

 

Best Regards, 

Joel Campos

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities