Continued development

This commit is contained in:
c0d3.m0nk3y 2026-05-08 22:28:26 -04:00
parent 1b4aa175ba
commit 3491593c07
1 changed files with 6 additions and 0 deletions

View File

@ -247,6 +247,7 @@ namespace trakker
{
if (dataGridViewProjects.SelectedRows.Count > 0)
{
var selectedIdx = dataGridViewProjects.SelectedRows[0].Index;
var selectedProject = dataGridViewProjects.SelectedRows[0].DataBoundItem as Project;
if (selectedProject != null)
{
@ -259,6 +260,11 @@ namespace trakker
{
projectData.Upsert(project);
_ctrl.LoadProjects(); // Reload projects to update the DataGridView with any changes
dataGridViewProjects.ClearSelection();
if (selectedIdx >= 0 && selectedIdx < dataGridViewProjects.Rows.Count)
{
dataGridViewProjects.Rows[selectedIdx].Selected = true;
}
}
catch (Exception ex)
{