New Form Class With DataGridView
- From: SePp <C_o_z_m_o@xxxxxx>
- Date: Wed, 19 Dec 2007 06:53:14 -0800 (PST)
Hello together,
I have a main form which includes a Datatoolstripmenu. From one of
these items I want to call
a Form which includes an DataGridview. I want to use this form and
datagridview as template and call It a lot of time from diffrent menu
items.( But with diffrent data (views))
What is the best way to do that. My problem is to find a way to say:
If this menu item is clicked load the template form with the template
gridview but with a special dataset(view). (The Dataset include
diffrent views)
Main Form/Menu:
private void sUBNRChasingToolStripMenuItem_Click(object sender,
EventArgs e)
{
Form3 chForm1 = new Form3();
chForm1.MdiParent = this;
chForm1.Show();
}
and this is the form I want to use as template;
public partial class Form3 : Form
{
public Form3(String LoadGrid)
{
InitializeComponent();
}
private void Form3_Load(object sender, EventArgs e)
{
this.vTableAdapter.Fill(this.dataset.view);
}
Thanks in advance for help.
Kind regards.
.
- Follow-Ups:
- Re: New Form Class With DataGridView
- From: Peter Duniho
- Re: New Form Class With DataGridView
- Prev by Date: Re: Best way to check if string is numeric
- Next by Date: Re: Gmail SMTP
- Previous by thread: Filtering DB Call based on local Data
- Next by thread: Re: New Form Class With DataGridView
- Index(es):
Relevant Pages
|