Toplink - providing updateable data grids

Hi
I have been working with toplink / Java WebServices and Adobe Flex.
Is there a way to send the entire editable grid data to a java webservice?
I can perform the updates on a line by line basis (by looping through changes), but would like to process the edits in one step.
Many Thanks in advance.
Edited by: ruchitk on May 4, 2010 9:04 AM

If you were going to set up replication based on materialized views, you'd have to create a materialized view on all 500 tables on the source system, which would incur a decent overhead (roughly on par with a trigger on each table that wrote to a log table). You'd then have to create 500 materialized views on the reporting system and set them all up to refresh hourly. Assuming you need a transactionally consistent set of data, that would mean a single refresh group with 500 materialized views. That's certainly possible, but it may take a while to refresh.
The amount of data you'd have to send over the wire, and the cost of extracting that data, would depend on the transaction volume on the source system.
I'm assuming that you need to have the reporting database open continuously for reports, which limits your ability to do things like maintain a (user managed) standby database or use transportable tablespaces. If you could tolerate more staleness in the data (i.e. have the reporting system updated daily) and/or accomodate a period of downtime for each refresh, those might be options. As it stands, though, materialized views are probably the most appropriate given your constraints.
As for maintainability, my major concern would be DDL changes to the primary, which would necessitate re-creating the materialized views on the destination system and pulling over the affected table(s) in their entirity. Depending on the frequency of schema changes on the source, that could become a maintenance issue.
Justin

Similar Messages

  • Display value in data grid

    08/29/2008 08:58:48 AM
    Reply | Quote | Top | Bottom | Edit
    hi all,
    i have two classes.
    class User
    public String name;
    public int age;
    public Address address;
    class Address
    public String city;
    I'm passing a List<Users> to the data provider of a
    data grid . I can display the values of properties of Users i.e,
    name and age.. My issue is how do i display the value of city which
    is a propertyt of Address class in the datagrid column..
    thanx in advance
    Mark this message as the answer.
    Print this message
    Report this to a Moderator

    Hi,
    Try labelFunction property of the DataGridColumn.
    labelFunction allow you to specify a function name, which will be
    invoked when that data is rendered. You will get the Object (User
    id your case) corresponding the row being rendered will be passed
    as argument to the function. You can use the object and return the
    value you want to be displayed.
    Please find more details on labelFunction at the URL below
    http://livedocs.adobe.com/flex/3/langref/mx/controls/dataGridClasses/DataGridColumn.html#l abelFunction
    You can also try custom item renderer.
    Hope this helps.

  • FillBy always fills in the same row in data grid view. How to make it fill in a new row for each click of the Fillby Button? VB 2010 EXPRESS?

    Hi there, 
    I am a beginner in Visual Basic Express 2010. I have a Point of Sale program that uses DataGridView to display records from an external microsoft access
    database using the fillby query. 
    It works, but it repopulates the same row each time, but i want to be able to display multiple records at the same time, a new row should be filled for
    each click of the fillby button. 
    also I want to be able to delete any records if the customer suddenly decides to not buy an item after it has already been entered. 
    so actually 2 questions here: 
    1. how to populate a new row for each click of the fillby button 
    2. how to delete records from data grid view after an item has been entered 
    Thanks 
    Vishwas

    Hello,
    The FillBy method loads data according to what the results are from the SELECT statement, so if there is one row then you get one row in the DataGridView, have two rows then two rows show up.
    Some examples
    Form load populates our dataset with all data as it was defined with a plain SELECT statement. Button1 loads via a query I created after the fact to filter on a column, the next button adds a new row to the existing data. When adding a new row it is appended
    to the current data displayed and the primary key is a negative value but the new key is shown after pressing the save button on the BindingNavigator or there are other ways to get the new key by manually adding the row to the backend table bypassing the Adapter.
    The following article with code shows this but does not address adapters.
    Conceptually speaking the code in the second code block shows how to get the new key
    Public Class Form1
    Private Sub StudentsBindingNavigatorSaveItem_Click(
    sender As Object, e As EventArgs) Handles StudentsBindingNavigatorSaveItem.Click
    Me.Validate()
    Me.StudentsBindingSource.EndEdit()
    Me.TableAdapterManager.UpdateAll(Me.MyDataSet)
    End Sub
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    'TODO: This line of code loads data into the 'MyDataSet.Students' table. You can move, or remove it, as needed.
    Me.StudentsTableAdapter.Fill(Me.MyDataSet.Students)
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Me.StudentsTableAdapter.FillBy(Me.MyDataSet.Students, ComboBox1.Text)
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    Me.MyDataSet.Students.AddStudentsRow("Jane", "Adams", "Female")
    End Sub
    End Class
    Get new key taken from
    this article.
    Public Function AddNewRow(ByVal sender As Customer, ByRef Identfier As Integer) As Boolean
    Dim Success As Boolean = True
    Try
    Using cn As New OleDb.OleDbConnection With {.ConnectionString = Builder.ConnectionString}
    Using cmd As New OleDb.OleDbCommand With {.Connection = cn}
    cmd.CommandText = InsertStatement
    cmd.Parameters.AddWithValue("@CompanyName", sender.CompanyName)
    cmd.Parameters.AddWithValue("@ContactName", sender.ContactName)
    cmd.Parameters.AddWithValue("@ContactTitle", sender.ContactTitle)
    cn.Open()
    cmd.ExecuteNonQuery()
    cmd.CommandText = "Select @@Identity"
    Identfier = CInt(cmd.ExecuteScalar)
    End Using
    End Using
    Catch ex As Exception
    Success = False
    End Try
    Return Success
    End Function
    In closing I have not given you a solution but hopefully given you some stuff/logic to assist with this issue, if not perhaps I missed what you want conceptually speaking.
    Additional resources
    http://msdn.microsoft.com/en-us/library/fxsa23t6.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Want Access Data Grid control in SharePoint 2013?

    Hello everyone!
    Recently we noticed something funny in SharePoint 2013. While quite many people were hoping to have the datasheet view like those in SP2007 and 2010, Microsoft has chosen a different interface to display datasheet view.
    Now, if you try to create a sub site under a publishing site, and use the
    Publishing Site template then try to create a datasheet view in the sub site, SharePoint will try to use the Access data grid control to display the view. In some situations the view will display and other situations it will not, and will show this
    error:
    The list is displayed in Standard view. It cannot be displayed in Datasheet view for one or more of the following reasons: A datasheet component compatible with Microsoft SharePoint Foundation is not installed, your browser does not support ActiveX controls,
    a component is not properly configured for 32-bit or 64-bit support, or support for ActiveX controls is disabled.
    If you create a sub site using Publishing Site with Workflow instead, then the datasheet view will be created properly using SP2013 interface.
    Using PowerShell, we can see that both Publishing Portal and
    Publishing Site With Workflow are using the BLANKINTERNET 53 template. The
    Publishing Site on the other hand is using the CMSPUBLISHING 39 template.
    Want to try it out and let me know if that happens to your SharePoint too?

    Hi Conway,
    I tested the issue in my environment per your description and it returned the results as below:
    I created a subsite using Publishing site under a team site in SharePoint server 2013, the datasheet view in a list displayed as pic1
    I reproduced the issue in SharePoint server 2010, the datasheet view in a list displayed as pic2
    It turns out by design the datasheet view in the subsite based on Publishing site template displays as your situation. Here is an article which explains this:
    http://www.sharepointblues.com/2010/03/31/data-sheet-view-not-working/
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Create Report from HFM Data Grid

    Hi All,
    I need to create a report out of the Data Grid created in HFM and then publish that as a PDF. I found the Reporting feature in Manage Documents that uses system reports.
    And if I want a report from a data grid the Data Explorer option has to be selected for Report Type.But in this case I guess I need to create a Report Definition File and then upload it which seems to be complex.
    But am not able to figure out how I can directly take a HFM Data Grid as the source and generate a PDF Report out of it.
    Can this be done using BI Publisher? If so can anyone please provide the steps?
    Or, can it be done using the Financial Reporting Studio ?
    I sincerely appreciate any help!
    Thanks in advance!
    Chella

    select
    decode( abs((sysdate - end_time)-1), (sysdate - end_time)-1, 'TOO LONG AGO', '-' ) "Check" ,
    b.database_name , t.type_qualifier1 , b.host ,
    to_char(b.end_time, 'YYYYMMDD-HH24:MI:SS') , b.time_taken_display , b.output_bytes_display
    from mgmt$ha_backup b, mgmt$target t
    where b.target_guid = t.target_guid
    order by type_qualifier1, end_time;

  • Data Grid in a List Component???

    Hi there!
    I have a populated List Component set to Multiple Selection.
    This list contains titles of a magazine issues.
    I wish to allow the user to select one or more items in the
    list and enter the quantity of the selected issue(s) he/she wants
    to receive.
    Is it possible to achieve this with a Data GRid integrated in
    the List Component or which simplier solution must I contemplate?
    I thank you in advance for indicating the best way to
    explore.
    Best regards,
    Gerry

    Hi GWD and thanks for responding.
    I fully understood your explanations and the example you
    provided.
    I'll give it a try, for sure.
    But I want to know:
    - How do I populate a DataGrid Component? Like a List
    Component? (you said they are quite the same, I assume methods to
    apply are identical...)
    -In the same way, I can pull out the data from a DataGrid as
    I do for the List, right?
    Thanks again!
    Best,
    gerry

  • How to click on linkbuttons in the rows of a data grid

    I'm trying to write automation test cases for a flex application using Flex Selenium.
    The flex selenium API provides only 2 click events: click(String objectId) and click(String objectId, String optionalButtonLabel)
    There are no click events for rows or columns for a data grid.
    The application has a  DataGrid with 2 linkbuttons in a column for each row (besides other columns).
    The linkbuttons have an id. But clicking it only clicks the one in the first row.
    Now, I have to perform these tasks:
    - Click on the link buttons in any row
    -  Click on any row
    -  Click on column  header to sort
    How can I accomplish these?

    Hi Suman,
    thanks for your prompt reply.
    I am trying it but it doesn't work. I started to run the query for a while but it is still running and there is no result for it. I still see the variable popup I filled after the first running of the query.
    Any other idea?
    Kind regards,
    Ali

  • Advanced Data Grid and Beta 3 Error:1502

    hi,
    When i upgraded from beta 2 to beta 3 .I get a error as
    follow:
    Error: Error #1502: A script has executed for longer than the
    default timeout period of 15 seconds.
    at mx.managers::CursorManager$/getInstance()
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2312]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2307]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2307]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2307]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2307]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2307]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2307]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2307]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2307]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2307]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2307]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2307]
    at mx.core::UIComponent/get
    cursorManager()[E:\dev\flex_3_beta3\sdk\frameworks\projects\framework\src;mx\core;UICompo nent.as:2306]
    at
    mx.controls::AdvancedDataGridBaseEx/mx.controls:AdvancedDataGridBaseEx::columnResizeMouse OverHandler()
    [C:\Work\flex\dmv_automation\projects\datavisualisation\src;mx\controls;AdvancedDataGridBa seEx.as:5970]
    at [mouseEvent]
    and my application hangs.Thanks in advance for all the
    help....

    hi Srinivas,
    Acually whenever i roll over the mouse on the column headers
    of the Advanced Data Grid it hangs and throw this error.i am
    getting a grouped data from data base and using the group
    collection as data provider which has source property bound to
    ArrayCollection.The problem comes only whenever we take the mouse
    over the column headers it throws this error and hangs.
    <mx:AdvancedDataGrid id="adg1" width="100%" height="100%"
    wordWrap="true" >
    <mx:dataProvider>
    <mx:GroupingCollection id="gc" source="{this.ABC}"
    ><!--ABC is ArrayCollection-->
    <mx:Grouping>
    <mx:GroupingField name="GroupingField"/>
    </mx:Grouping>
    </mx:GroupingCollection>
    </mx:dataProvider>
    <mx:columns>
    <mx:AdvancedDataGridColumn dataField="Field1"
    headerText="Field1" />
    <mx:AdvancedDataGridColumn dataField="Field2"
    headerText="Field2" sortable="true" />
    <mx:AdvancedDataGridColumn dataField="Field3"
    headerText="Field3" />
    </mx:columns>
    </mx:AdvancedDataGrid>
    If move the mouse over the column headers the error is thrown
    and the application hangs and the same code works fine with the
    beta 2.
    Thanks....

  • Advanced data grid memory leak issues

    Steps to reproduce:
    1. create an hierarchical xml as per the adobe live docs
    2. load this in to your flex app with http service (e4x)
    using hierarchical data as data provider eg
    mydata = new HierarchicalData(root.item);
    mydata.childrenField = "child" ;
    3. use a refresh button to reload the data
    Actual Results: system memory increases unlimited.
    Expected Results: system memory levels out as is with the
    normal datagrid
    I have made a test application that demonstrates the issue
    reported i hope it will help you resolve the issue.
    The proplem is particularly apparent with larger data sets
    and frequent data refreshes as with our application currently in
    production. The application should run in a webserver environment.
    For local file system use you might have to change the permissions.
    I did some further tests and the problem only occurs if the
    "displayItemsExpanded" property of the advanced datagrid is set to
    true.
    Regards,
    Michel Durieux
    this bug is filed under
    http://bugs.adobe.com/jira/browse/FLEXDMV-1750

    I have a data grid getting streaming quote data (for a trading
    application we are building in Flex). I get at least an update per
    symbol and the user can typically have anywhere from 20 symbols to 50
    symbols on the grid -
    so my test case, is i have 30 symbols in the data grid and each of
    them get an update / second (4 or 5 columns in the grid get updated)
    - so i find the index of the symbol who row needs to get updated and
    update those fields (also update the corresponding data source to
    handle other scenarios) ...
    let me know if you need any other info ?
    2009/5/10 Michael Borbor <[email protected]>:
    Hi there could you post your project test case? I assume you're ussing an ArrayCollection as the dataProvider, tests have been made and when dealing with very large amount of data the inner workings of the AC can perform up to 20 times worse than an Array due to binding mechanisms.
    >

  • "advanced data grid"  with flex builder 3.0

    I'm getting watermark as "Flex Data Visualization
    Trial" when tried to use advances data grid with flex builder 3.0. There are some links floating on the internet where it's suggested that the license key should be provided in the flex-config.xml to avoid this issue. I would like to know if this componenet is stable with flex builder 3.0 and is it ok to use this in production environment?

    Someone from Adobe might be able to answer more definitely
    but it's probably just not considered compatible with a modified
    Eclipse (at least, the installer). It may just be the installer
    blowing up when it shouldn't. I think Adobe doesn't want to support
    install configurations that they don't have setup and tested. I had
    a similar issue once and solved it by doing the following... not
    sure if it'll work, and it's more of a last resort:
    Setup a regular eclipse install - install the plugin there.
    Somehow, you'll have to keep track of all the files it adds, either
    using timestamps or some compare software. It should be a bunch of
    files and/or folders in the '/plugins' directory, and possibly a
    few others in '/configuration', maybe '/features'. Take all the new
    folders and any jar files etc, and drop them into the same folders
    in your special Eclipse version. Hopefully when you start it up
    you'll get the Flex functions...
    Of course, you could end up hosing your entire "NWDS"
    (whatever this is) install. So you probably want to test it out
    first!

  • Advanced Data Grid datasource Arraycollection addItem extremly slow

    Hello everyone,
    i want to add 2000 items to my existing arraycollection, which is the datasource for the Advanced Data Grid i made.
    here is the code:
    for(var i:int;i<res.length;i++) {
    var swap:myDataGridObject = incomingdataarray[i];
    datasourcearray.addItemAt(swap,i);
    it takes about 2 minutes .... thats very slow, thinking of one is waiting 2 minutes every time he expanded a node in the tree.
    as a solution i tryied to do it like this:
    datasourcearray = new ArrayCollection( ObjectUtil.copy( incomingdataarray.source ) as Array );
    the result is that it is actually working, but i can not expand my treenodes any longer. there seemed to be no items in there.
    adatagrid.valdiatednow() also has no effect.
    perhaps anybody came across the same thing an can help me out
    thanks
    steff

    Hi,
    first, thank u for your fast answer. I try to add Items to a ArrayCollection which is the dataprovider from my ADG.
    i did this in this way:
    for(var i:int;i<incomingDataArray.length;i++) {
    var swap:myObject = incomingDataArray[i];
    datasourceAC.addItemAt(swap,i);
    i get the data from another method in form of a array collection, which contains many of the myObjects Elements.
    The datasourceAC is the provider as mentioned above. the only way it works for me to add the items to the dataSourceAC and the ADG beeing updated in the
    correct way is this one. but its very slow....
    now i tried your hint like this:
    var sourceArray:Array = datasourceAC.source;
    for(var i:int;i<incomingDataArray.length;i++) {
    var swap:myObject = incomingDataArray[i];
    sourceArray.push(swap);
    datasourceAC.refresh();
    the result is that the nodes are loaded an displayed but i can not expand them any longer. they seemed to be empty.
    as i traced that problem a little closer i realized that my groupingfunction isnt called either.... i dont know wh y;(
    hope that explains everything
    thanks for help
    steffan

  • Data Grid wilth Multiple ArrayCollections

    I am using an array collection to store a month name and a
    list of the monthly sales for a list of people, which are in their
    own array collection. Adding an item to the array collection looks
    something like this:
    myCollection.add({month:"January",salesArray:someArrayCollection});
    Where someArrayCollection has the January sales for a number
    of people. The point of setting it up this way is that the size of
    the embedded array collection (the number of people to display)
    changes depending on what geography the user selected. Simply
    binding this to a data grid leaves me with two columns, one listing
    the months, and the other listing all the people's sales for that
    month separated by commas within the grid tile. How can I break
    these out into separate columns?
    I know that you can list out the DataGridColumns within a
    DataGrid and specify which field the column refers to. I'm trying
    to find a way to set the dataField attribute to a particular item
    within the embedded array. I would think that the code would be:
    dataField="salesArray.getItemAt(0)"
    to return the first person's sales in it's own column, but
    this doesn't work. Any advice would be greatly appreciated.

    Hi GWD and thanks for responding.
    I fully understood your explanations and the example you
    provided.
    I'll give it a try, for sure.
    But I want to know:
    - How do I populate a DataGrid Component? Like a List
    Component? (you said they are quite the same, I assume methods to
    apply are identical...)
    -In the same way, I can pull out the data from a DataGrid as
    I do for the List, right?
    Thanks again!
    Best,
    gerry

  • Data Grid

    hi all,
    i have two classes.
    class User
    public String name;
    public int age;
    public Address address;
    class Address
    public String city;
    I'm passing a List<Users> to the data provider of a
    data grid . I can display the values of properties of Users i.e,
    name and age.. My issue is how do i display the value of city which
    is a propertyt of Address class in the datagrid column..
    thanx in advance

    "rnjt reddy" <[email protected]> wrote in
    message
    news:g98a7o$23v$[email protected]..
    > hi all,
    > i have two classes.
    > class User
    > {
    > public String name;
    > public int age;
    > public Address address;
    > }
    >
    >
    >
    > class Address
    > {
    > public String city;
    > }
    >
    > I'm passing a List<Users> to the data provider of
    a data grid . I can
    > display
    > the values of properties of Users i.e, name and age.. My
    issue is how do i
    > display the value of city which is a propertyt of
    Address class in the
    > datagrid
    > column..
    Use a labelFunction.
    HTH;
    Amy

  • Data grid hidden

    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

    Hello,
    Perhaps you can show what you are after by posting images and describe from the images what you want as I am unclear otherwise to what you are after, thanks.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my webpage under my profile
    but do not reply to forum questions.

  • Data-grid population problems

    Hi,
    I am having a little problem that is driving me mad . When trying to fill my data-grid noting happens . No error or noting . The only thing i can see is when i run the application a red x is put on my database in the server explorer and when i refresh it
    it will return to normal. 
    Any help would be appreciated.
    Thanks.
    private void btnSearch_Click(object sender, EventArgs e)
    searchAll();
    public void searchAll()
    OleDbConnection conToDataBase = new OleDbConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\Resources\health_plus.accdb;Persist Security Info=True");
    OleDbCommand searchAllCom = new OleDbCommand("SELECT * FROM Doctors", conToDataBase);
    conToDataBase.Open();
    searchAllCom.CommandType = CommandType.Text;
    OleDbDataAdapter searchDocAdapter = new OleDbDataAdapter(searchAllCom);
    DataTable doctorsTable = new DataTable();
    searchDocAdapter.Fill(doctorsTable);
    searchDoctorDataGrid.DataSource = doctorsTable;

    Hi Ali-k,
    First you need to make sure the data is in your Access DataBase.
    Then If you have binded the DataSource before searchAll method, you could clear the DataSource before resetting it like below.
    searchDocAdapter.Fill(doctorsTable);
    searchDoctorDataGrid.DataSource = null;
    searchDoctorDataGrid.DataSource = doctorsTable;
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • New iMAC to Dell 3008 using Mini DisplayPort to Dual-Link DVI Adapter

    I just brought the new iMAC 27" iCore7. Previously I was using old MBP with dual link DVI to DELL 3008 and they did fine. But Today I connect the Dell 3008 to my new iMAC using Mini DisplayPort to Dual-Link DVI Adapter...They could not work properly.

  • Output not as per requirement

    Hi there, I am running a query: select distinct(state_code),count(*),hldy_str from hol,sol where cal_b2k_id=sol_id and mmyyyy='122009' group by state_code,hldy_str order by state_code is output is something like : HAR 63 Y Y Y Y Y HP 15 Y Y Y Y JHK 4

  • Linking Session Model with query model

    Hi All, How do we implement a basic Session Model? Can we use a Session Model similar to Query Model and bind all the columns/attributes with that of ViewBean's ? Does Studio support that. We have a requirement wherein we need to manipulate the field

  • Multiple select list not retaining the value for the first time

    Hi, I have a 3 select list depends on each other. select_list1 -- > select_list2 --> multiselect3. I have use denes example to create them. For the first time when I select values from 1,2,3 and runs a report based on it, it works fine but *does not

  • Deleting photos off iphoto causing it to crash

    When i try and delete a photo on iphoto, it crashes the application, causing me to force quit. My trash is allready empty so that shouldnt be an issue. Any ideas or help? thanks