Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
177
REg : Assign a data from Ultrawebgrid to datatable
posted

Hi ,

I need the data from the ultrawebgrid as a data table for verification. This i have done it in Window application. I need to do it in WebApp. Somebody can help me in this regards.

Thanks alot.

 

 

Parents
No Data
Reply
  • 45049
    Suggested Answer
    posted

    nrv,

    ASP.NET applications do not provide the ability to directly use a DataSet object in the design view, starting with version 2.0 of the .NET Framework.  This leaves you with two options - using ObjectDataSource for design-time support or using the DataSet entirely in code.

    If you want to use ObjectDataSource, I strongly recommend that you look over the MSDN documentation provided for ObjectDataSource.  This control works the same for WebGrid as it does for the .NET GridView.  Remember that ObjectDataSource represents "flat" data; if your DataSet contains multiple DataTables linked by relations, you'll want to expose each table with its own ObjectDataSource and link these together using our WebHierarchicalDataSource.

    The alternative is to instantiate, fill, and bind your DataSet in code.  For WebGrid, the typical suggestion is to use the grid's InitializeDataSource event to fill your DataSet and set it as the DataSource of your grid.

Children