Ok,I decided not to go with the FKV.I don't know whether it is even possible to use it.
I decided to use custom code to get the table into Ultragrid.
i have a button on my form.When I click the button the Invchead table should get loaded into ultragrid.
This is the code for button_click event
string connetionString;
SqlConnection connection;
SqlDataAdapter adapter ;
SqlCommandBuilder cmdBuilder;
DataSet changes ;
string sql ;
//Int32 i ;
connetionString = "Data Source=DBHQERPDB01;Initial Catalog=EpicorTest;User ID=manager;Password=March2011";
connection = new SqlConnection(connetionString);
sql = "select * from InvcHead";
try
{
DataSet ds = new DataSet();
connection.Open();
adapter = new SqlDataAdapter(sql, connection);
adapter.Fill(ds);
connection.Close();
epiUltraGridC1.DataSource= ds.Tables["InvcHead"];
}
catch(Exception ex)
{
}
But the table doesnt get loaded.Something is missing.If anyone could guide me that would just be great.
I decided to use custom code to get the table into Ultragrid.
i have a button on my form.When I click the button the Invchead table should get loaded into ultragrid.
This is the code for button_click event
string connetionString;
SqlConnection connection;
SqlDataAdapter adapter ;
SqlCommandBuilder cmdBuilder;
DataSet changes ;
string sql ;
//Int32 i ;
connetionString = "Data Source=DBHQERPDB01;Initial Catalog=EpicorTest;User ID=manager;Password=March2011";
connection = new SqlConnection(connetionString);
sql = "select * from InvcHead";
try
{
DataSet ds = new DataSet();
connection.Open();
adapter = new SqlDataAdapter(sql, connection);
adapter.Fill(ds);
connection.Close();
epiUltraGridC1.DataSource= ds.Tables["InvcHead"];
}
catch(Exception ex)
{
}
But the table doesnt get loaded.Something is missing.If anyone could guide me that would just be great.
--- In vantage@yahoogroups.com, "Anitha" <anithayedavalli@...> wrote:
>
> Hi All,
> Can I add InvcHead in my Sales Order form?If so,how?
>
> Thanks.
>