hi. okay, have a two click buttons, and they are supposed to write to the xml and read the xml file, and then transform it to the application, when i click on the Current count or On Order buttons, when you click these buttons, have a grey background colour, foreground blue colour, and have a different font of Verdana and Century School book. it keeps hidden, when i click these buttons, when i load the data grid from the csv. so, how do i make sure that, it is not hidden, when i click on it. will paste the two button click events. have tried googling this, and did not find any thing. so will paste the code below.
marvin.
// This function will display the Current Count data grid column to change the style sheet for this click event.
private void btnCurrentCount_Click(object sender, EventArgs e)
{
// Design a data table and write and read the xml documents to the data grid columns selected.
// Set up the data set.
DataSet ds = new DataSet();
// Set up the data table.
DataTable dt = new DataTable();
// Ad the data table to the data set.
ds.Tables.Add(dt);
// Write the xml document to the data grid column.
ds.WriteXml(Application.StartupPath + ("CurrentCount.xml"));
ds.ReadXml(Application.StartupPath + ("CurrentCount.xml"));
// Set up the data table and the data set and set to 0.
dgvDisplayData.DataSource = ds.Tables[0];
// Set focus on the Data Grid Column.
dgvDisplayData.Focus();
System.Xml.Xsl.XslCompiledTransform xslTransformer =new System.Xml.Xsl.XslCompiledTransform();
xslTransformer.Load("CurrentCount.xsl");
xslTransformer.Transform("CurrentCount.xml", "CurrentCount.html");
}
// This function will display the On Order data grid column to change the style sheet for this click event.
private void btnOnOrder_Click(object sender, EventArgs e)
{
// Design a data table and write and read the xml documents to the data grid columns selected.
// Set up the data set.
DataSet ds = new DataSet();
// Set up the data table.
DataTable dt = new DataTable();
// Ad the data table to the data set.
ds.Tables.Add(dt);
// Write the xml document to the data grid column.
ds.WriteXml(Application.StartupPath + ("OnOrder.xml"));
ds.ReadXml(Application.StartupPath + ("OnOrder.xml"));
// Set focus on the Data Grid Column.
dgvDisplayData.Focus();
System.Xml.Xsl.XslCompiledTransform xslTransformer = new System.Xml.Xsl.XslCompiledTransform();
xslTransformer.Load("OnOrder.xsl");
xslTransformer.Transform("OnOrder.xml", "OnOrder.html");
}
http://startrekcafe.stevesdomain.net http://groups.yahoo.com/groups/JawsOz