Все вопросы: [datagrid]

456 вопросов

похожие теги: xceed-datagridflex-datagrid
1
голосов
1ответов
2265 просмотров

how to pass an array of values from one mxml component to another in Flex?

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 t...

0
голосов
2ответов
783 просмотров

wpf toolkit, datagrid, comboboxcolumn

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 u...

1
голосов
2ответов
1175 просмотров

Hierarchical Gridview

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

1
голосов
4ответов
3892 просмотров

Unable to set focus to textbox in dojo datagrid

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 ...

0
голосов
1ответов
1081 просмотров

silverlight 3 Datagrid header customization

I am working on silverlight3 toolkit controls. I have to add listbox control in column header of datagrid. For example, I have a 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 d...

1
голосов
2ответов
2611 просмотров

flex 3 data grid: hide value if == 0 and show checkbox on Booleans

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

6
голосов
2ответов
4546 просмотров

WPF ComboBox/ListBox with MultiSelect based on Enum with Flags

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 objec...

0
голосов
3ответов
2122 просмотров

how to access the datagrid in one mxml in another component?

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" ...

0
голосов
4ответов
585 просмотров

Need to add "rollup" of entire dataset to bottom of DataGrid that is paged

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 fin...

7
голосов
1ответов
15378 просмотров

sorting and filtering options in WPF Datagrid?

I installed the most recent WPF toolkit and used the Datagrid control. The list of items is showing with automatically-generated columns based on my IList as ItemsSource. I was wondering if there is an OOTB way to have filtering/sorting on this grid? A way to click the header to make it sort, or...

0
голосов
2ответов
1738 просмотров

how to add a datagrid row on key down event?

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 keydow...

0
голосов
1ответов
2234 просмотров

How to add Button to WPF Datagrid column dynamically?

Is there any way to dynamically add a button control(along with column name) to WPFDataGrid column,?? By clicking on header button,pop-up will open . this button generation is dynamic one ,which will be decided from code-behind, for some column headers need to add,for some not needed to add.

0
голосов
3ответов
2405 просмотров

how to increase the panel height in flex dynamically?

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 ...

0
голосов
2ответов
1013 просмотров

In Flex, how do I get the value of a ComboBox that is in a dataGrid?

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...

0
голосов
1ответов
884 просмотров

WPF DataGrid - Problem Customizing a ComboBox

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="Defaul...

0
голосов
2ответов
1287 просмотров

Style not being applied to Datagrid Header in WPF ... Resource Issue

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...

2
голосов
1ответов
722 просмотров

Changing visibility of child controls in RowDetailsTemplate based on DataContext property

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 C...

0
голосов
1ответов
2072 просмотров

ASP.Net removing borders from (nested) DataGrid

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 t...

2
голосов
2ответов
3228 просмотров

Silverlight Checkbox inside datagrid causing Trouble

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" ...

1
голосов
3ответов
1541 просмотров

How to get rid of the empty space in the right part of DBGrid Delphi

Although the question seems simple, I couldn't find the answer to it. I have a DBGrid component with lots of columns, and as a result they don't fit into the page and scrollbar appears. I also have column-autofix mechanism, which makes each column have width of the longest element in the table....

0
голосов
1ответов
306 просмотров

Styling of data in data grid in wpf

I have data being populated into my data grid.Now,In the last column I have data like "Out of Balance " and "Inbalance". I want the display to show all "out of balance" data as being underlined and red in clour while the "in Balance" data to be green in colour without any underline.Note that, the...

0
голосов
1ответов
410 просмотров

DataGrid: How to test if a column exists in a datagrid

I have a datagrid that I want to pass in a generic collection. On mouseover I want to test if the row has a specific column and return the value. What I am trying to accomplish is to determine the type of objects in the grid based on the existence of a specific column. For example, if "SerialNo"...

7
голосов
5ответов
32229 просмотров

C# Silverlight Datagrid - Row Color Change

How do you change the color of the silverlight datagrid rows?! I've tried this but it doesn't seem to work how I want it to...Random rows get colored incorrectly: void dataGrid1_LoadingRow(object sender, DataGridRowEventArgs e) { var c = e.Row.DataContext as Job; ...

1
голосов
2ответов
8275 просмотров

Filtering a Dojo DataGrid

I have a datagrid all set up, connected to an XMLStore. When the user selects a month from the dropdown list I want the grid to filter only that months data. Should be simple and according to every example it is. I can't figue out why it doesn't work, nor why IE tells me that none of the methods ...

0
голосов
1ответов
152 просмотров

EventListener to watch for number of items in DataGrid

I'm new to Flex, but I've been exploring it with Flex Builder, and its pretty good. Indeed the best for fast building of Web based Apps... I'm trying to do something with eventListeners, but i still do a lot of messy code, so wanted help of those who already know flex. I'm have a DataGrid, a...

0
голосов
1ответов
800 просмотров

ASP.NET DATAGRID Not moving to next page

I've got a ASP.NET web page, which has a bound datagrid on it, it was having trouble with showing vertical and horizontal scroll bars when it got over 14 items in it, so I decided to move the datagrid to paging, which works fine when it first loads, it shows the first 14 items, and places the cor...

6
голосов
3ответов
12798 просмотров

WPF toolkit datagrid cell text wrapping

My WPF datagrid's columns are fixed width, which means long text in the rows are cut off. How can I have the text wrap?

0
голосов
1ответов
747 просмотров

DataGrid paging with persistent data

In a Sharepoint web part, I have a DataGrid with paging that I load with all of the data (not using custom paging - custom paging would require a significant overhaul in the current process and is probably one of the last options I can try). I was wondering if it was possible to have it page thr...

1
голосов
2ответов
5043 просмотров

Selecting a column in a flex datagrid

In a flex datagrid, by default clicking on column headers does sorting. I want it such that if a user clicks a column header the entire column is selected. I have the datagrid listening for the HEADER_RELEASE event so I know when the column header is clicked. How can I have the column and hea...

3
голосов
2ответов
2213 просмотров

Style first row in a WPF Datagrid

I would like to change the styling of the first row (only) in a WPF Datagrid but haven't found how to do it. I wondered about creating a trigger, something like this: <Style TargetType="{x:Type dg:DataGridRow}"> <Style.Triggers> <Trigger Property="SelectedIndex" Value=...