Hi all i came across a problem with the checkboxes inside the datagrid.
First let me post my code of what i have achieved and then i will tell what's causing the trouble
This is the code of my datagrid inside a child window
<Controls:DataGrid x:Name="dgAthlete" Height="Auto" Width="Auto"
IsReadOn...
Hi,
I'm trying to remove the borders from a datagrid on an ASP.NET control. The control is a custom field template for a dynamic data website (if that matters) and is nested inside another datagrid. The problem is that whatever I do, it still has the same border styling as the outer data grid. I've tried setting in in the ASCX, in the c...
I have a Silverlight DataGrid that contains a RowDetailsTemplate. The RowDetailsTemplate contains a TabControl with several TabItems. The DataGrid will be bound with items of type Contact. Contact has a property called ContactType. I would like to have several of the TabItems be hidden when ContactType is Client. Ideally I would lik...
Hi, I'm trying to Use a Header Style for my WPF DataGrid that sits in a UserControl. but i get this:
Cannot find resource named '{DataGridRowHeaderBackgroundStyle}'. Resource names are case sensitive. Error at object 'Microsoft.Windows.Controls.DataGridTextColumn' in markup file 'WPF;component/view/dashboardview.xaml' Line 17 Position ...
I have a Datagrid with a combo box bound column that works great as follows:
<tk:DataGridComboBoxColumn SelectedValueBinding="{Binding DefaultLocationID}"
SelectedValuePath="LocationID"
DisplayMemberPath="LocationName"
Header="Default Location"
ItemsSource="{Binding Source=...
I have a data grid that has ComboBoxes in two of its columns.
What I need to do is get the values of those bombo boxes when a user highlights the row of the grid NOT when the user uses the comboBox. I understand how to pull the values out once the change handler is invoked on the comboBox, but I'm not seeing a way to get at the comboBox...
I have a panel inside which I have a datagrid and a button. The functionality is that when I click the button, an row gets added to the data grid. I have described the pane height and width in %. But as the number of rows in the data grid increase, due to fixed panel height, a scroll bar appears in the data grid.
But I want the panel h...
I have a datagrid with one row intially. When I click on the first row, i.e on key down event, I want another row to be added.
Earlier I had a button, on clicking which I added the row. But now I want the row to be added automatically once I click the first row. How to do that?
I added keydown event to the datagrid, but it threw some...
I installed the most recent WPF toolkit and used the Datagrid controll.
The list of items is showing with automaticly generated columns based on my IList as ItemsSource.
I was wondering if there is an OOTB way to have filtering/sorting in this grid?
A way to click the header to make it sort, or use a dropdown in the header that shows al...
In ASP.NET 3.5 I have a datagrid that is bound to a somwehat dynamic datatable. The datatable is created by taking three different tables returned from a dataset and combining them to create one table.
It goes like this. The first datatable returns a list of the columns that will be in the final datatable. The second datatable return...
I have a datagrid in my mxml file, say, samp.mxml.
<mx:DataGrid id="taskDataGrid" dataProvider="{initDG}" variableRowHeight="true"
editable="true" width="100%" paddingBottom="1" paddingTop="1" height="55" >
<mx:columns>
<mx:DataGridColumn dataField="Select"
editable="true"
rendererIsEdito...
So I may be pushing the boundaries just a bit...
Basically I have the following enum, declared in C# code:
[Flags]
public enum FlaggedEnum : int
{
Option1 = 1,
Option2 = 2,
Option3 = 4,
Option4 = 8,
...
Option16 = 32768,
None = 0
}
This enum is a member of an object which I have successfully bound to a Dat...
I have a data grid. How can I hide a value of a column if it's "0" ? Do I have to use item renderers? How? Is there an easier way?
Second thing, if I have a boolean column whose values are actually the strings "true" and "false" how can I render it as a non editable check box?
thanks
...
Hi.
I am working on silverlight3 toolkit controls. I have to add listbox control in column header of datagrid.
For example, I have dept column in datagrid control. When I mouse over on dept column header, it has to show list of dept names and Depend on listbox selected item,I have to filter my datagrid items.
Can anyone plz help me to...
I have a Dojo Datagrid with one of the columns being rendered as a textbox by a formatter function. When I click on the rendered textbox to enter some value, the cursor appears in the textbox and focus is immediately lost (i.e, the cursor disappears - typing does not produce anything). I have to click once more on the textbox for the foc...
Hello everyone.
I need to bind hierarchical List object to a Gridview (Hierarchical in windows form). How can this be achieved - any examples ??
Ex: of list object
List of CargoMovement => Cargomovents
and each CargoMovement has List of Transactions
thanks for help
...
Hi
In a datagrid I have two DataGridComboBoxColumns. The items of one of these columns should depend on what is selected in the other column. The underlying collection used to model this is a dictionary<string,List<string>>. How should i go about implementing this? I can't seem to hook up to any relevant events on the columns, and I ca...
I have a mxml component with a datagrid listing project names and code versions. I have the selected projects from the datagrid binded to a public variable named "selectedProjects". But how to access this variable in another mxml component. I want the selected project's name in that component's text area. how to do that?
I even created a...
I have a MainWindow.xaml (which consists of a TabControl) and a few UserControls (which are loaded into the TabItems).
One particular UserControl has a WPFToolkit DataGrid with custom columns (not auto-generated). One of these columns is a ComboBox-type column that binds to a property in my model called "Status". I also have an Enum for ...
I am trying to work up a general ledger appearance in an asp.net page. Here's the data i have so far.
AccountName Desc Type Amount
-----------------------------------------
Account1 Stuff Debit 5000
Account1 Stuff Credit 4000
Account2 Other Debit 3000
Account2 Other Credit 6000
A...