I'm thinking to convert my desktop wpf Listboxes to DataGrids. My question is:
Is there anything I can do in a listbox that I can't do in a datagrid. For example I would like to have templates that will allow me to display data in different ways, 2 up, 4 up etc for the lists. Is this as simple with DataGrids.
Thanks for your help.
...
Hi,
I have a datagrid in which I would like to show the details when a row is clicked, and hide it when the user clicks again.
DataGridRowDetailsVisibilityMode.VisibleWhenSelected
only allows to show one details row at a time. The other options seem to be All or Nothing.
What is the workaround?
Thanks!
...
hey how can i put a datagrid inside other datagrid cell
4ex-
i have a cutomer colum with a collapse sign(or button) now when i click on the sign(or button) a new datagrid is polpulated on the same row next column with customer details .
can any one point how it can be done?
...
Hello I have a problem with binding commands to button inside datagrid.
Here should be explanation but it doesn't explain everything.
http://msdn.microsoft.com/en-us/library/dd458928.aspx
What should be in classes in namespace Infrastructure?
Can somebody show me a really basic sample of using this?
not just parts of the code...
...
hi - i binded a datatable to a datagridview datasource. Now the problem is the columns in my datagridview cannot be customized. Does anyone know how to do this? It seems that the columns are dynamically created from the datasource. I need to custom to the font, color column names, etc... any thoughts?
...
I'm attempting to add an image to a datagrid item render dynamically in flex.
Here is my DataGrid code
The value of "str" in the getImagePath function is correct.
<?xml version="1.0" encoding="utf-8"?>
<mx:DataGrid xmlns:mx="http://www.adobe.com/2006/mxml"
doubleClickEnabled="true">
<mx:Script>
<![CDATA[
...
I have data source and table that I can bind to my controls and datagridview. I can add records to data table and i can view on datagridview but I can't update and Delete records using datagrid. I have following code. If someone can help me i will be really appreciated.
Private Sub add_and_update()
Dim con As VistaDBConnection
...
Hello,
How would I display a running total for a particular column of each record that is displayed in a DataGrid? I'd like to keep the computation logic in the view model.
Desired Output:
Value | Running Total
25 25
10 35
-2 33
Thank you,
Ben
Edit: Keep in mind that when a user-triggered DataGri...
Hello,
I'm developing a Silverlight application where I want the master and its detail grid to share the same columns.
So, some of the common fields would be displayed in master grid and rest of the fields would be specific for each child/detail.
How can I do it?
Thanks in advance.
...
Hello.
I have a DataGrid that two of its columns are ComboBoxes (one contains few but not this is the problem).
I want, that when the user changes the first Combo's value, the ComboBox in the other column should bind to a property of its (this property is a collection). Say the First ComboBox is Category, I want that when the user chan...
I have been using listboxes in my application. Now I'm considering using datagrids instead. Is there anything that can be done in a LISTBOX that cannot be done in a listbox?
thanks,
Richard
...
I have created a datagrid in ActionScript class and I want to add an Image to one of the columns..I tried to add an image this way..but it doesnot work..Can anyone help me..
[Embed(source="../../../../css/images/redCircleIcon.png")]
public static const redIcon:Class;
var statusRedImg:Image = new Image();
statusRedImg.source = ...
Yet another wpf question.
I have two DataGridTextColumn's that take decimal values. for some reason when I am adding a new row (the initial value of the columns is zero) I have to enter my value twice in either of these two columns. The first time I type a value in it and tab out, the value returns to zero. After I enter the value the s...
I have an ObservableCollection of ChildViewModels with somewhat complex behaviour.
When I go to edit a row - the DataGrid goes into 'edit-mode' - this effectively disables UI-notifications outside the current cell until the row is committed - is this intended behaviour and more importantly can it be changed?
Example:
public class View...
Hello!
I have a DataGridCell that contains a ComboBox.
I want, that when I fire 'SelectionChanged' event of it, a CollectionViewSource of a different column (eventually - at runtime, cell) CellEditingTemplate's Resources should be populated with data according to the selected value for this row.
Maybe DataTrigger, ActionTrigger, Event...
Hi
I have a silverlight datagrid control and columns autogenerate property is set to false.
I am using MVVM and wants to bind the columns collection.
The data which i get is from xml. Something similar to sample code
http://blogs.msdn.com/b/deepak_verma/archive/2008/07/19/dynamic-creation-binding-of-silverlight-datagrid.aspx
Now by...
In my Master detail scenario I' have a datagrid binded to DomainDataSource as Master and and when the user clicks on a row, I opened up the ChildWindow where the user can make the edits to curently selected record. I'm not using the DataForm.
My Question is How can I save the edits made by user from ChildWindow?
Do I need to get the han...
I'm new to wpf and im having trouble adding tooltips to my datagrid header from code-behind.
I need to use autogeneratecolumns on the datagrid which rules out xaml editing. All examples i could find involved som xaml editing.
I've tried to add it the DataGridTextColumn without succeding
private void dataGrid1_AutoGeneratedColumns(obje...
I've been trying to bind XML (via an XElement) to a DataGrid dynamically in Silverlight (specifically Silverlight 4, but any solutions in SL3 would be fine too) but have been unable to do so. I hope to do this dynamically (ie - no rigid business objects to represent the XML).
What I'm hoping for in the end is a way to bind to any XEleme...
Hello!! I have a table like this below. And there is a div container with information (usualy large text), so I want to position these divs straight under each tr row to make them toggleable (like sliding panel). Can you please advise how to position it with css/javascript? Tho, this html is not semantic so if there is another way to do ...