Questions tagged [datagrid]

A graphical user interface element to display and manipulate data in a tabular format.

DataGrid is a tabular graphical component which exists in many UI frameworks. Questions about DataGrid should also include a tag for relevant UI framework.

See also:

16230 questions
226
votes
19 answers

JavaScript data grid for millions of rows

I need to present a large number of rows of data (ie. millions of rows) to the user in a grid using JavaScript. The user shouldn't see pages or view only finite amounts of data at a time. Rather, it should appear that all of the data are…
Rudiger
  • 6,634
  • 9
  • 40
  • 57
220
votes
5 answers

WPF datagrid empty row at bottom

I bind my datagrid using //fill datagrid public DataTable GameData { get { DataSet ds = new DataSet(); FileStream fs = new FileStream(IMDB.WebPage.Class.Config.XMLPath, FileMode.Open, FileAccess.Read); …
WtFudgE
  • 5,080
  • 7
  • 47
  • 59
161
votes
12 answers

How to perform Single click checkbox selection in WPF DataGrid?

I have a DataGrid with first column as text column and second column as CheckBox column. What I want is, if I click the check box. It should get checked. But, it takes two click to get selected, for first click the cell is getting selected, for the…
Prince Ashitaka
  • 8,623
  • 12
  • 48
  • 71
141
votes
11 answers

How do I make XAML DataGridColumns fill the entire DataGrid?

I am using DataGrids in XAML (not Silverlight) with resizable columns, the DataGrid will expand if the user resizes the screen. Currently if the widths of all the DataGrid columns are less than the width of the DataGrid I get an extra "column"…
Purplegoldfish
  • 5,268
  • 9
  • 39
  • 59
140
votes
8 answers

How can I set the color of a selected row in DataGrid

The default background color of a selected row in DataGrid is so dark that I can't read it. Is there anyway of overriding it? Tried this