Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8449425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:42:11+00:00 2026-06-10T10:42:11+00:00

I started to use SlickGrid and I got confused about the difference between Data

  • 0

I started to use SlickGrid and I got confused about the difference between Data View and Grid (with editing enabled). I haven’t found in the docs some discussion about data view, although it has been mentioned there.

Please enlighten me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:42:13+00:00Added an answer on June 10, 2026 at 10:42 am

    In very simple terms, just think of three layers:

      Grid
      ----
    DataView
      ----
      Data
    

    At the bottom you have the raw data. This is just a plain old array. Each item in the array represents one row of data (to be displayed as one row in the grid).

    The DataView reads the data array and makes it available to the grid by exposing a couple of standard methods. This way, when the grid wants to get data for display purposes, it just talks to the dataview via one of the standard methods.

    The Grid is the display component. Its only responsibility is to render the HTML code necessary to display the desired output on the screen.

    The grid never accesses the data directly. It only ever talks to the dataview. This allows the dataview to perform tricks when returning the data to the grid, such as delivering “phantom” rows used to represent group headings.

    If you’re interested, the example below is just about the simplest example you can come up with that uses a dataview with SlickGrid.

    var data = [
      { title: "Primer",       rating: "A" },
      { title: "Matrix",       rating: "B" },
      { title: "Transformers", rating: "C" },
    ];
    var columns = [
      { id: "title",  name: "Title",  field: "title" },
      { id: "rating", name: "Rating", field: "rating" }
    ];
    var options = {
      enableColumnReorder: false  // ... whatever grid options you need
    };
    
    var dataView = new Slick.Data.DataView();
    var grid = new Slick.Grid("#myGrid", dataView, columns, options);
    
    // wire up model events to drive the grid
    dataView.onRowCountChanged.subscribe(function (e, args) {
      grid.updateRowCount();
      grid.render();
    });
    dataView.onRowsChanged.subscribe(function (e, args) {
      grid.invalidateRows(args.rows);
      grid.render();
    });
    
    // Feed the data into the dataview
    dataView.setItems(data);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started to use CheckThreadViolationRepaintManager to detect EDT violations. It complains about: partner =
I started to use emacs for LateX editing again. Back in the days, it
I started to use HTML5 cache to view a simple HTML page with one
I recently started to use linux, so I have little knowledge about it. At
I have just started to use slickgrid (++ to the author btw) - running
I started to use Jackrabbit in my project. As i found out there is
I lately started to use htaccess to rewrite my URL's but i've got some
I started to use this extension that I found on the web: public static
I started to use markdown to take notes. I use marked to view my
I've started to use GeckoFX but I got a major issue with javascript:void(0) that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.