Hi there,
I decided to start off learning C# by doing come datagrid stuff.
My problem is that I don't know how to select a few columns from a full table when I am trying to display all the data on a datagrid.
The code I am running is here:
namespace
ECN
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
// TODO: This line of code loads data into the 'eCNFormsDataSet.ECN_Main' table. You can move, or remove it, as needed.
this.eCN_MainTableAdapter.Fill(this.eCNFormsDataSet.ECN_Main);
this.MaximizeBox = false;
}
private void button1_Click(object sender, EventArgs e)
{
this.eCN_MainTableAdapter.ClearBeforeFill = true;
this.eCN_MainTableAdapter.Fill("Want to fill this with specific Columns.");
}
}
}
Can anyone give me some suggestions? I already tried to look online, but the solutions are too complex for what I think should be a really simple problem. Thanks in advance!
Ke