0
Я пытаюсь создать кнопку, которая сохранит данные в базе данных. Данные будут отредактированы или введены новыми в SuperGridControl. Я совершенно не знаю, как это сделать. Какие-либо предложения?Сохранить кнопку в WinFormApp SuperGridControl
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace MyFirstWinForApp {
public partial class Users : Form
{
public Users()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'testDataSet.GrupyUzytkownikow' table. You can move, or remove it, as needed.
this.grupyUzytkownikowTableAdapter.Fill(this.testDataSet.GrupyUzytkownikow);
// TODO: This line of code loads data into the 'testDataSet.Uzytkownicy' table. You can move, or remove it, as needed.
this.uzytkownicyTableAdapter.Fill(this.testDataSet.Uzytkownicy);
}
private void button1_Click(object sender, EventArgs e)
{
try
{
!!!!!!!!!!!!!!!!!!!!!
MessageBox.Show("Dane zapisane", "Zapisano", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
catch (Exception ex)
{
MessageBox.Show(ex.Message, "Błąd", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
} }