help!!I'm stuck here!

G

Guest

I have written this to show table in the database on this datagrid...but when
i implement my click event i had an error msg and i don't know how to correct
it...here's the code..
private void Form1_Load(object sender, System.EventArgs e)
{
this.sqlDataAdapter1.Fill(this.dsCall_Details_Record2);

}

private void button1_Click_3(object sender, System.EventArgs e)
{
Call_Details_Record frmCall_Details_Record = new Call_Details_Record();
frmCall_Details_Record.ShowDialog();

}
the error is..
C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Main_Page.cs(377):
'CallBillingSystem.Form1.dsCall_Details_Record2' denotes a 'field' where a
'class' was expected

C:\Documents and Settings\Yeoh Cheng Lin\My Documents\Visual Studio
Projects\CallBillingSystem\CallBillingSystem\Main_Page.cs(378): The type or
namespace name 'frmCall_Details_Record' could not be found (are you missing a
using directive or an assembly reference?)

can u help me?
 
B

Bruce Wood

Maria,

Could you post the code that is giving you the compiler error, along
with any declarations, etc? Maybe the rest of us can help you, in case
alyssa isn't reading any more.
 
L

LOZANO-MORÁN, Gabriel

Post the line where you declare dsCall_Details_Record2

Gabriel Lozano-Morán
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top