datagrid

ASP.Net Datagrid: in Footer calculate Avg or Sum for column

I have a datagrid getting bound to a dataset, and I want to display the average result in the footer for a column populated with integers. The way I figure, there's 2 ways I can think of: 1."Use the Source, Luke" In the code where I'm calling DataGrid.DataBind(), use the DataTable.Compute() method (or in my case DataSet.DataTable(0).Co...

Grid controls compatible with .NET and Mono?

Do you know any grid control compatible with .NET and Mono? DataGridView seems to be quite buggy on Mono, and GTK# controls depends on GTK+ so you need to install it in windows machines where, usually, it's not present. ...

what is the difference between invalidateList and invalidateDisplayList?

I have a DataGrid, populated with objects in an ArrayCollection. After updating one of the objects' fields, I want the screen to update. The data source is not bindable, because I'm constructing it at runtime (and I don't understand how to make it bindable on the fly yet -- that's another question). In this situation, if I call Invali...

Silverlight- DataGrid control - Selection Changed event interfering with sorting

I'm currently playing with the Silverlight(Beta 2) Datagrid control. Before I wired up the SelectionChanged event, the grid would sort perfectly by clicking on the header. Now, when the grid is clicked, it will fire the SelectionChanged event when I click the header to sort. Is there any way around this? In a semi-related topic, I'd ...

How to retrieve a changed value of databound textbox within datagrid

Hi, ASP.NET 1.1 - I have a datagrid on an aspx page that is databound and displays a value within a textbox. The user is able to change this value, then click on a button where the code behind basically iterates through each DataGridItem in the grid, does a FindControl for the ID of the textbox then assigns the .Text value to a variable...

how to sort a flex datagrid according to multiple columns?

I have a datagrid, populated as shown below. When the user clicks on a column header, I would like to sort the rows using a lexicographic sort in which the selected column is used first, then the remaining columns are used in left-to-right order to break any ties. How can I code this? (I have one answer, which I'll post below, but it ...

Silverlight Datagrid Control - How do I stop the sorting on a column?

Continuing my problem from yesterday, the Silverlight datagrid I have from this issue is now causing Stack Overflow errors when sorting a column with a large amount of data (Like the text column that contains a where clause for a SQL statment). When you sort, it'll fire the SelectedIndexChanged event for the datagrid and then still try ...

How do I sort an ASP.NET DataGrid by the length of a field?

Hi all, I have a DataGrid where each column has a SortExpression. I would like the sort expression to be the equivalent of "ORDER BY LEN(myField)". I have tried SortExpression="LEN(myField)" but this throws an exception as it is not valid syntax. Any ideas? ...

How to scroll only the right side of a table, listview, or datagrid?

Let's say I have data structures that're something like this: Public Class AttendenceRecord Public CourseDate As Date Public StudentsInAttendence As Integer End Class Public Class Course Public Name As String Public CourseID As String Public Attendance As List(Of AttendenceRecord) End Class And I want a table that looks som...

C#.net datagrid

How to add child rows in datagrid c#.net windows forms? ...

ASP.NET Grid Controls with minimal HTML output?

Looking to identify an asp.net grid control that has more functionality and ease of use than the standar asp.net grid control but doesn't punish you wiht excessive html or javscript code. Currently using infragistics but the html for a page is typically in the 90k range and the js that is parsed/downloaded is about 250k. This seems exces...

What WPF Datagrid controls are worth the money and/or effort?

Looking for a good WPF Datagrid. I'm currently doing a "survey" of my available options. However, that survey is not going great. Edit Yes, I'm aware of many of the actual possibilities for WPF datagrids - but what I'm looking for is people who have used one or more to chime in lessons learned from real-world usage. So infragistic...

What is the best *free* datagrid for WPF?

I've tried Xceed, WPFToolkit, Infragistics... with WPF you could also roll your own. Please include descriptions of why you favor one over the other. ...

Is DataGrid a necessity in WPF?

I have seen a lot of discussions going on and people asking about DataGrid for WPF and complaining about Microsoft for not having one with their WPF framework till date. We know that WPF is a great UI technology and have the Concept of ItemsControl,DataTemplate, etc,etc to make great UX. Even WPF has got a more closely matching control- ...

DataGrid Edit Problem

I have a DataGrid, with an ItemTemplate that has an image and label. In the EditItemTemplate the label is replaced by a textbox. My problem is that the edit template only shows when I click the Edit button the second time. What gives? ...

What is the best third-party WinForms grid for .NET?

It seems that there are many third-party .NET WinForms grids available on the market. I have seen Syncfusion, Xceed, and Infragistics in use at various companies, but now need to choose one for my own use and can't find objective information. My priorities are ease of use, hierarchical capabilities (i.e. ability to drill down on a row ...

How to format a currency datafield in Flex

I have an xml file providing data for a datagrid in Flex 2 that includes an unformatted Price field (ie: it is just a number). Can anyone tell me how I take that datafield and format it - add a currency symbol, put in thousand separators etc. Thanks. S. ...

Flex : Filter a datagrid using a combobox value that is contained in a datafield

I have a filter in a combobox with a number of entries. Instead of filtering the datagrid with an exact match, I would like to take the selected value and only display records where the selected value is contained in the datafield. For example: the user selects a value of "New" and the datagrid displays records where the contents of the ...

Can't find dynamic controls in datagrid on postback

Using .NET 1.1, I have a DataGrid that contains three columns for each row. Row one has a label with some text. Row three will always have two radio buttons and two checkboxes and those are in the HTML side of the page. Row two will have dynamically generated controls (just textboxes for now) and there can be 1 or more per row. These...

How do I display only certain columns from a data table?

Hi guys... I'm using a web service that returns a dataset. in this dataset there are 5 table, let's say table A, B, C, D, E. I use table A. So DataTable dt = new DataTable() dt = dataset.Table["A"] Now in this datatable there are columns a1,a2,a3,a4,a5,a6,a7. Let's say I only want to get columns a3 and a4 then bind it to my datagr...