Hi Josip,
Thank you for using Syncfusion controls.
We have analyzed query, we suspect that you have to save the edited values of a row in your DataBase without empty values by using Save button. This can be achieve by using SelectedItem property in SfDataGrid, its contains the underlying object of the particular row data. So using that we can process and save the value in SfDataGrid.
Please refer the below code example
private void button1_Click(object sender, EventArgs e)
{
if (sfDataGrid.SelectedItem != null)
{
var orderInfo = (sfDataGrid.SelectedItem as OrderInfo);
if (!string.IsNullOrEmpty(orderInfo.Country) &&
!string.IsNullOrEmpty(orderInfo.CustomerID) &&
!string.IsNullOrEmpty(orderInfo.CustomerName))
{
// You can save the edit value here.
}
}
} |
If we misunderstood your requirement, please provide more information regarding the requirement. This would help us to proceed further.
Regards,
Farjana Parveen A