We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

SampleBrowser.SfDataGrid - compile error

Please advise on how to fix the following compile error.  Thanks

3 Replies

SP Subburaj Pandian Veluchamy Syncfusion Team February 28, 2019 11:33 AM UTC

Hi Paul, 
Thank you for contacting Syncfusion support. 
Based on the provided information, we suspect that you have modified the sample code with the empty space in the Xaml file, so that the issue may occurs. Can you replace the following code and check, 
<?xml version="1.0" encoding="UTF-8" ?>
<paths xmlns:android="
  <external-path name="external_files" path="."/>
We have checked our DataGrid SampleBrowser working fine without any issue from our end. Can you please confirm whether you made any related changes from your side and let us know with more details if you still face issue? We will check and help you with that. 
Subburaj Pandian V

PD Paul Dietz February 28, 2019 04:55 PM UTC

Copied the provide markup into the provider path file and it working now.  Although was hoping the sample code would show how to enter a new row using unbound column.  Can you provide example solution to add a new row using datagrid or do i have to use a listview?  

PK Pradeep Kumar Balakrishnan Syncfusion Team March 4, 2019 02:13 AM UTC

Hi Paul, 
Thank you for your update. 
We have checked your query “How to add an row using UnBound Column” UnBound row is an row which is not in underlaying collection. And unbound column is an column is not in underlying column list. Based on this how you want to add new to datagrid. We have attached code snippet for real time update. 
Code snippet : 
// Added record in last position.
viewModel.OrdersInfo.Add(new OrderInfo(1111, "Praveen", "London", "Kumar", "NewYork"));
//Inserting Record in desired position.
//viewModel.OrdersInfo.Insert(2,new OrderInfo(1111, "Praveen", "London", "Kumar", "NewYork"));
We have attached the sample for your reference. 
Pradeep Kumar B 

Live Chat Icon For mobile
Up arrow icon