WPF: programatically assingin a color to row in DataGrid
Hi all, I need to assign a color to the a row that i add at runtime to the DataTable. How can this be done ? Regards Abdul khaliq ...
Hi all, I need to assign a color to the a row that i add at runtime to the DataTable. How can this be done ? Regards Abdul khaliq ...
Hello My footer is currently composed of a label and an ItemsControl. It needs to be below 2 DataGrid controls that are similar in that they both contain a fixed width column for every day in the week and the end of it (which is what the ItemsControl in the footer has totals for). I'm trying to solve the alignment, which seems easiest...
This might be a bug in the WPF Toolkit DataGrid. In my Windows.Resources I define the following ColumnHeaderStyle: <Style x:Name="ColumnStyle" x:Key="ColumnHeaderStyle" TargetType="my:DataGridColumnHeader"> <Setter Property="ContentTemplate"> <Setter.Value> <DataTemplate> <StackPanel Orientation=...
Hello, i have an editable DataGrid, something like: <mx:Datagrid editable="true" dataProvider="{arrayListPreferences}" id="preferencesGrid"> <mx:columns> <mx:DataGridColumn header="col1" dataField="preference" editable="false"/> <mx:DataGridColumn header="col2" dataField="value" editable="true"/> </mx:columns> </...
I am referring to use http://www.sitepen.com/blog/2008/03/17/jsonpath-support/ This is what I am doing (spent two days but no luck): first drawing a datagrid with integer column and a date column and also able to sort the columns values by clicking on the column header.. now using dojox.jsonPath.query to query numbers using syntax lik...
Hi, Is there any way to animate a row of my datagrid on a property change?? I want the row background to flicker when one of the values in the row changes. ...
Changing values in the RowEditEnding event of a DataGrid I have a DataGrid that has a check box column. Only one row can have the box checked. If the user checks a new box all the other boxes should automatically be unchecked, similar to a radio button. I have tried to implement that behaviour in the RowEditEnding event, but if I modify...
Hi I'm a total Flex newbie and I struggle with event model. I have the following scenario: having DataGrid with dataProvider set to ArrayCollection the data grid is a simple to-do list, first column contains check box as item renderer other columns are plain strings What I need to achieve is that after data grid has been created or ...
I am using a PagedCollectionView in Silverlight 3 to group items in a datagrid. I want to detect when the group headers are clicked but after 6 hours still cannot find any way to do this. (So that when a collapsed header is clicked I can dynamically load the group's content) The datagrid is populated like so: PagedCollectionView coll...
Is there a way to specify DataGrid columns declaratively using a binding? (And to set the columns' properties using this binding?) Idealy, I would have a list of objects (e.g. rows) databound to the ItemsSource and one of their properties would be a dictionary (or a list of objects of a certain class or whatever) with a name and a value....
Hello, I have a big problem. I try to bind my WPF Datagrid to a table, created with inner join. I have created a class for the info to convert successfully: public class NeshtoSi { public NeshtoSi() { } public string ssn; public string name; public string surname; } And then I create t...
I have a bound DataGrid and various other controls(external to the datagrid) that show more details about the selectedrow in the datagrid. This is easy to do with databinding or handling the SelectionChanged event on the datagrid. However, how do I do this without requiring the user to select a row - eg on 'mouseover' can I change the s...
When creating a custom column design for a Silverlight DataGrid, is there any way to bind or make use of the DataGrid's SelectedItem property? I wish to display a static element, but have it only visible for the row that is selected. A simple example of what I'm after: <data:DataGrid> <data:DataGrid.Columns> ... ...
I have a datagrid in my Silverlight-3 application. When I select a row in the datagrid, I need to able to go to a new page which contains a dataform having a detailed view of that particular row. I dont want to use "RowDetailsTemplate" property in datagrid. I want to navigate to a new page which contains my dataform. How can I achieve ...
Hi, I have a requirement for a "Tree grid" or "Tree list" control. This is something that looks like a DataGrid, but the left hand side is a tree that can be expanded and collapsed to show different rows (typically grouped, or perhaps showing data from a heirarchy). Has anyone tried to build something like this by hand? If so do you r...
Hello Stackoverflowers. Does anybody know how to add a new row to a datagrid via a checkbox. example: checkbox 1 : label (PS2) checkbox 2 : label (PS3) checkbox 3 : label (PSP) By selecting one or all of these checkboxes i what to add a new Datagrid row. Datagrid Console price row1 PS2 $20, row2 P...
I need to add a trigger for two buttons in DataGrid Template columns. I have found a couple postings saying to put the code in the code-behind using the UniqueID. Something isn't right with my logic (or maybe it isn't in the right place). I am getting "Object reference not set to an instance of an object" error when I run it. I am g...
I'm trying to get sorting to work with a WPF Toolkit DataGrid. My DataGrid's rows are instances of view models. The row's view model exposes a view model for each column. Each column is data templated to a different user control. This is what my DataGrid's column declarations look like: <tk:DataGrid.Columns> <tk:DataGridTemplateColu...
When I update a datagrid SelectedItem from code (via a bound object in a ViewModel), how to I get the visual grid to highlight the newly selected item? Thanks, Mark UPDATE: This is still an issue for me. My SelectedItem property already implements change notification, but the datagrid is not VISUALLY displaying which row has been selec...
HI I have a DataGrid (yes would be nicer if it was a gridview but nothing i can do about that) in the itemDataBound event i am adding a hidden field into the first cell of each row I am setting its ID based on something, and then saving its clientID in a List for later attempts to get the value from it but try as i might i cant find a...