GeliRvTask task = new GeliRvTask();
foreach (var item in task.GetType().GetProperties())
{
if (btn.EditorCell.GridRow.Cells[item.Name].Value != System.DBNull.Value)
{
item.SetValue(task, btn.EditorCell.GridRow.Cells[item.Name].Value, null);
}
}