datagrid

ASP.NET DataGrid and styling with CSS

I have never had an issue with putting th { background: #900; } as a style in a css file and have that apply to the header row of an ASP datagrid. But for some reason today, I have a grid that is getting output with everything in TBODY and even the headers are in TD tags. Any ideas? One thing that is a little different for me is ...

Mvvm Silverlight, using binding to Programmatically style rows in a SilverLight DataGrid

Is it possible to bind a rows in a Silverlight DataGrid to some sort of style property in a ViewModel so that styles can be applied programatically / dynamically? I've been using the Mvvm-Light toolkit quite successfully to create an mvvm silverlight app, this is the first major stumbling block I have hit. Thanks in advance for any he...

FLEX - How Can I Click On A Row In A DataGrid And Highlight All Related Rows

Hi, Can someone show me a basic example of how I can select a row in a datagrid in flex and have it highlight that row plus any related rows. Let me give you can example: Let's say that I have a datagrid. In the grid I have two columns for each row. One column has what type of car they own, and the other column has the owners name. Le...

Hide a Group Name in wpf data grid

I've got two groups in my datagrid. First one is the main group and the second is the subgroup, what I want to do is hide the Main group and just show the subgroups in my data grid. Here is the code: ListCollectionView collection = new ListCollectionView(bdata); collection.GroupDescriptions.Add(new PropertyGroupDescription("tid"));// I ...

WPF DataGrid and parameterless constructors

I have a class "MyEntity", which does not have a default constructor (well, it does, yet it is not suitable for use). I have a form with a DataGrid, which has a cool feature for creating new rows. Problem: DataGrid cannot create new object when no parameterless constructor is defined. Question: is there a way to provide the DataGrid w...

How to enable NewItem Placeholder in WPF data grid

Hi, I have a wpf datagrid which is bound to an observable collection. Currently I don't have the NewItemPlaceHolder. How can I enable NewItemPlaceholder (an empty row in the bottom to add new rows)? Here is how I declared my datagrid: <WpfToolkit:DataGrid x:Name="grid" ItemsSource="{Binding Path=SampleObservableCollection}"...

ExtJS grid alternative with more flexible license?

The ExtJS grid is awesome. However, the GPL license is not. Is there a similar alternative available under a more flexible license? It must have inline cell editing. ...

wpf .net 4 - listview vs datagrid

I have implemented the listview to show an Observable collection coming in an MVVM desktop application. Now I'm wondering if I should have used the new datagrid instead. Can someone tell me what are the main advantages of using a datagrid control. I looked for some listview vs datagrid docs on the web but didn't find anything recent. T...

wpf datagrid selection changed

Hello, I used to have the following code using a listview: private void ListViewSelectionChanged(object sender, SelectionChangedEventArgs e) { foreach (Exam exam in e.RemovedItems) { ViewModel.SelectedExams.Remove(exam); } foreach (Exam exam in e.AddedItems) ...

SL4 datagrid with datapager and gridsplitter

Hi All, I have a grid with two Rows and a GridSplitter. In the first Row I have a StackPanel which has the DataPager and DataGrid in it. In the second Row I have the Expander Control vertically bottom aligned and Expand Direction Upward. The idea that the DataGrid will occupy all the space (vertically stretch) of both Rows but when th...

wpf datagrid - Any way for the user to turn off and on column visibility

I have a datagrid with many columns and I'd like to provide the users with a drop down that allows them to select which columns they can see. I'm using the .net 4 wpf datagrid in a desktop application. Does anyone know of an easy way to accomplish what I am trying to do. Thanks, Richard ...

How to determine currently sorted header column in data grid?

Hi I have a datagrid. I want to know which header the user clicked on to give the currently sorted view. Is there an API in flex framework that I can use to achieve this? Hopefully I can get back a column index so I know how it is currently sorted. Thanks, Mike ...

Represent grid-like data in WPF

I am rewriting a VB6 form in WPF for my companies internal application. The requirement is to display a collection of objects which can have any property edited. The representation of the data is transposed so that each object is displayed as a column, rather than a row, adding more objects creates more columns: [Object 1]...

Best custom dynamic grid for MVC

.Net MVC application also running Linq-to-SQL. I have seen many articles on grids that will operate in this environment but none that will capture data - all simply display and sort/order. I need to dynamically add project codes as columns and have days of the week as rows. The individual cells will contain hours worked - yup this is ...

DataGrid and GridSplitter in Silverlight 4

Hi All, I have a grid with tow rows splitting with the gridsplitter. In first row I'm showing the datagrid with datapager and its Vertical Alignment is set to stretch. In the second row I'm displaying the DataForm as Child in the Expander Control. What I want is to occupy all space(vertically) by DataGrid when there is No Expander (Data...

flex datagrid data on datachange

Hi all, I am using an extended datagrid which takes its height on the basis of measured height of items. Item renderer for datagrid is a canvas. Which holds one more canvas(header for item renderer) and a text area. The problem I am facing is with the header canvas in item renderer. Header canvas has one label which diaplay a name of us...

.net winforms GUI pattern for blotter

I have to design a .Net winforms GUI which has around 10 tabs - each of which display a blotter grid. The rows correspond to records in cache and the cache data changes frequently. The amount of data is large and the requirement is that only those grid cells should be updated for which the corresponding data has changed in the cache. Is...

Silverlight 4 datagrid and Selecting All Checkboxes when select the Group Header CheckBox

Hi, I have a datagrid with Grouping ON and whose first col is a Checkbox. I'm looking to have the CheckBox on the Group Level so that the User click one checkbox and it automatically select all the checkboxes under that groud and vicevera. I also have a Print button which when pressed should have arary of all the rows with CheckBox chec...

c# DataSet To DataGrid

Hi, I would like to convert my dataset which contains one table into a datagrid in order to get the width of each column to add many groups title with the correct width just above. I've tried " mydatagrid.ItemsSource = mydataset.Table[0].defaultview;" and it works properly except this instruction doesn't fill any columns in my datagrid...

Entity Framework CRUD operations on a datagrid

I have a List<T> bound to a datagrid and am trying to figure out how to save all the changes to the database (using Entity Framework), not just one row at a time; OR, at least a better way to commit changes from the datagrid to the database. I am using the MVVM pattern. Here is what I have as far as saving one row: private static P...