On pageload we are displaying records in xamdatagrid along with the headers.
But when there are no records in the list then xamdatagrid is displaying the null record as a first item.
I tried to remove the null record with
SourceList.SelectedItems.Records.Add(SourceList.Records[0]);SourceList.ExecuteCommand(DataPresenterCommands.DeleteSelectedDataRecords);
But "SourceList.ExecuteCommand(DataPresenterCommands.DeleteSelectedDataRecords);" this line is throwing "ContextswitchDeadlock" error.
Kindly help me to delete the null record.
I can see the null record in "DataRecord" property of xamdatagrid. How to delete the null record from the datarecord.
When i make datasource of xamdatagrid to null then it is not displaying the headers also.
I need headers with empty records.
Hello Naresh,
Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Looking forward for your reply.
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.