In good old (well!!) WinForms days the datagrids row used to the be the actual control and you could then access the DataItem.
In WPF its all flipped and dataGrid.Items is just the source data.
I am probably doing this the wrong way round as im a bit of a WPF newb but how can I iterate through the rows of my gridview grabbing the value...
I'm using buildin WPF DataGrid in .net 4.
I can set the background of a DataGridCell programatically like below.
DataGridCell dgc = this.GetCell(i, j); //GetCell is extension func
dgc.Background = Brushes.LightGray;
My question is, how can i remove the background color i set and back to the default?
By "default" I mean the default t...
I'm facing the following problem: I'm using validation summary popup for displaying errors on the page, and i have an editable DataGrid. So there are 2 problems:
1) DataGrid validation duplicates validation error, if it occurs in the DataGrid cell. For example. DataGrid contains a collection of objects IEnumerable. When I'm doing Comple...
Hi All.
I'm new to WPF/C#/NET but I have been learning by way of coding some small exercises.
Anyway, I'm stuck. I have seached on here and google and can't find the answer or maybe more correctly can't find an answer I can make sense of.
My problem is this... using the Entity Framework I have two tables. One for Employee details and ...
Making a separate question, related to comments on the answer to http://stackoverflow.com/questions/2481946/wpf-4-what-happened-to-datagridcolumnheader
It appears I can use DataGridHeaderBorder in a UserControl, stand-alone in a ResourceDictionary, but not in a Style's setter of a Template.
<ResourceDictionary xmlns="http://schemas.mic...
I have an issue with a datagrid inserting/updating rows twice. The datagrid is bound to an observable collection that has an ItemEndEdit event added to it:
/// <summary>
/// extends the ObservableCollection class to include adding an ItemEndEdit event
/// </summary>
public class ObservableProjectExpenseItems : ObservableCollection<Proje...
Hi,
I am trying to find out how to read the value of my WPF datagrid cells.
something along the lines of
String myString = myDataGrid.Cells[1][2].ToString();
the datagrid has been created in XAML and i have populated the datagrid with row data by using
reportGrid.Items.Add(new cbResultRow() { ... });
now I want to go back and r...
I am looking for a datagrid which can show hierarchical information. I don't need it to be ajax driven ... can simply even be from static data embedded in HTML.
...
VS 2010, WPF project.
I have a datagrid with text in all cells (data are from an array of custom objects). However I am unable to copy (ctrl+c) content of any cell. So I would like to use textboxes to display content of each cell. The real problem is I cannot do this in XAML but I have to do it dynamically in the code, because entire gr...
When releasing the latest iteration of our winforms application there is often confusion when users cannot see changes developers have made to a particular datagrid. Perhaps we've added, resized or re-ordered columns on purpose and we'd like users to benefit from the change. Because their local settings cache the grid layouts they must ...
I have created a .bat file that displays all the users logged in Windows Terminal Services.
I can execute the .bat file in my c# code behind and display the results in plain text in a label or text box. What i would like to do is data bind the user name and the session ID in a data grid.
protected void Button1_Click(object sen...
I have a generalized php routine which generates xml results from different mySQL queries. The actual structure of the xml will vary depending on which query is used. (Actually, the number of columns will vary.)
I've just started to explore using jqGrid, and I'd like to write a generalized display routine where I do an ajax call to my...
I've been working exclusively with ComponentArt controls and want to know what else is out there. What Grid and Treeview controls are worth investigating?
It doesn't matter if I need to pay for them... quality, speed, and reliability are key.
I've seen a few issues with the CA Grid Control has issues with setting the column width dy...
This is driving me nuts. I am creating a DataGrid in code and then binding it to a datatable. This is dynamic and the rows and columns will be different everytime the grid is created.
Basically I loop through my datatable and create DataGrid columns for each column, like this:
private static void CreateDataGridColumns(DataGrid datagr...
Hi folks!
Here is an example grid-view:
Also another example from TED.com
Any ideas on how I could go on about implementing a dynamic grid like this in CSS?
I guess it might have something to do with dividing the box in units styled with float:left, and each unit would have a border if on a boxes border.
Help would be very app...
I need not:
sorting
filtering
grouping
column headers
row headers
I need:
Just 7 buttons(each a weekday) over the data matrix data
Scrollable data matrix
editable
row AND columns resizeable
I decided to choose this:
A Scrollviewer with a Grid with several Gridsplitter and a Itemscontrol.
Implement IEditableObject into my ViewMo...
I would like to use the word wrapper for datagrid header, the problem is that it cuts the word to a new line, what i need is to add - sign after the word cutted...
what i mean is:
admins-
trator
...
I need to use a grid that allows for filtering in the column headers. I know there are some third-party components out there that cost money. I am looking for something that is free / open-source that can be used on a project. Is anyone aware of a GridView that can do this?
...
I have created a .bat file that displays a servers terminal Service SessionID and Username.
Im Displaying the Information in a datagrid
Here is the output of the .bat file:
C:\Documents and Settings\adcock>qwinsta /server:ilsap01
SESSIONNAME USERNAME ID STATE TYPE DEVICE
console ...
I have a window that is composed of several UserControls, three of which are DataGrids. It looks like this:
<DockPanel LastChildFill="True">
<local:MainRibbon DockPanel.Dock="Top" .../>
<local:LeaveTimeActivityGrid ... />
<local:AdminActivityGrid ... />
<local:TotalsFooter ... />
<local:ProjectActivityGrid ... />...