diff --git a/core/gridform.ui b/core/gridform.ui
index a201617..8a7663b 100644
--- a/core/gridform.ui
+++ b/core/gridform.ui
@@ -48,6 +48,9 @@
-
+
+ false
+
Edit record
@@ -71,6 +74,9 @@
-
+
+ false
+
Delete record
diff --git a/core/igridform.cpp b/core/igridform.cpp
index f58f52d..ef75adc 100644
--- a/core/igridform.cpp
+++ b/core/igridform.cpp
@@ -131,3 +131,12 @@ void IGridForm::on_btnFilter_toggled(bool checked)
ui->filterWidget->setVisible(false);
}
}
+
+void IGridForm::on_tableView_clicked(const QModelIndex &index)
+{
+ if (ui->tableView->currentIndex().isValid())
+ {
+ ui->btnEdit->setEnabled(true);
+ ui->btnDelete->setEnabled(true);
+ }
+}
diff --git a/core/igridform.h b/core/igridform.h
index f5a1aec..27aead5 100644
--- a/core/igridform.h
+++ b/core/igridform.h
@@ -53,6 +53,8 @@ private slots:
void on_btnFilter_toggled(bool checked);
+ void on_tableView_clicked(const QModelIndex &index);
+
private:
QString m_pluginId;
IFormHandler *m_formHandler;