datagrid

VB.NET-Grid double click fires on single click

Hi all, Ok, here is a weird VB.NET Grid problem. I am sure it is really simple, but it doesn't make sense to me. I have a grid that displays data from a binding source. I have a method to handle the CellContentDoubleClick which will get the value of the cell and use that to do a new look up. This will generate a new datasource (with...

wpf Print functionality

I am using wpf toolkit data grid. which could have large number of rows which could be contain in multiple pages. just wondering for best solution to print/print preview data grid contents (rows) p.s: kindly doesn't suggest printvisual as it doesn't fulfill my requirement and cater some sample along your solution. thanks ...

Building a dynamic editable matrix - ASP.NET

Scenario: I am building a flexible discounting component, whereby discounts can be specified for different types of customers against different types of products (means tested). The discount categories, product types and discount rates are all configurable by the user and ideally I would like the user to be able to view and edit the dis...

Binding the Foreground of a WPF DataGrid Text Column

Hey, I try to built a DataGrid, and I want to bind one of the TextColums' Foreground property to a Date, so that it becomes red, if the Date is in the past. Here the XAML: <toolkit:DataGridTextColumn Binding="{Binding Path=Prüfdatum, Converter={StaticResource TimestampToDateConverter}}" Header="Prüfdatum" Foreground="{Bind...

How can I determine if a DataGrid has been sorted or paged, prior to the events being triggered?

I have a DataGrid that has event handlers bound to SortCommand and PageIndexChanged. How can I determine if those event handlers are about to be called, say on page_load? These events will fire just fine after page_load, but I'd like to know at page_load if they are to be fired. ...

WPF datagrid selected row clicked event ?

Hi, I want to execute some code when a a selected row of the WPF DataGrid is double clicked. I know that the datagrid has a MouseDoubleClicked event and that it also has a row selected event but I don't see any event for "selected row double clicked" ... Do you think it's possible to capture this event somehow ? Regards, Seb ...

Silverlight DataGrid how to get cell value from a selected item?

Hi, I am trying to get a cell value from the selected item of a silverlight datagrid. In the attached code I can get to the properties of the cell and change its forecolor, but I can not get the value of the cell. Can someone please let me know what I am doing wrong? Many thanks in advance for your help! private void FindDetails_Sel...

order of rows in a datagrid in Flex

I have a datagrid and it lists several rows as seqno | NAME | COMPANY 1 | BOB | D&T 2 | Jenny | M&Y 3 | Jane | D&T It is possible to have buttons as [MOVE UP] and [MOVE DOWN] so that when I select a row in a datagrid and press one of those button that the order changes and the seqno updates accordingly. Meaning if I s...

Prevent tab from changing to other cell in Flex Datagrid

Hi, I have a flex editable datagrid mx:DataGrid and when I press TAB key, it changes to another cell when I am editing a cell. I don't want it to change to another cell when I press TAB. How can I stop this behavior? Thanks, Philip ...

WPF Datagrid template removes ability to resize columns

How come whenever I override the default template for a DataGridColumnHeader it can no longer be resized by the user even though CanUserResizeColumns is set to true for the datagrid? Is there something that I need to add to the template to restore this functionality? Here's my template xaml: <Style x:Key="ColumnHeaderStyle" TargetType=...

Winform DataGrid hot keys using Ctrl-E

I am writing an winform application that has a application menu of Ctrl-E to edit the currently selected row in a DataGrid. At any point the user can also use Ctrl-I to insert a new row. It appears that Ctrl-E is a custom key in BaseTextBox (as are Ctrl+K, Ctrl+L and Ctrl+R) http://social.msdn.microsoft.com/Forums/en/csharplanguage/th...

Why DataGrid in WPF 4.0 doesn't show Data?

So i Got a tmplist of ObservableCollection in which i got few elements. I connect it to the ItemsSource of DataGrid in WPF 4.0 and it doesn't show anything. Doesn't add any colums. If I add breakpoint I can see that the "ItemsSource count equals quantity of tmplist elements, but the Columns count equals 0. Why is that? Here is some code...

Displaying and editing a concatenated string enumerable in a bound WPF DataGrid

I'm using a WPF DataGrid with binding in order to display and edit various properties of a class. Many of these properties are IEnumerable<string>. I would like to display these concatenated, with each item of the enumerable separated by a newline character. The value must also be editable - after an edit, the concatenated string should ...

Binding data to DataGrid through ActionScript

I am trying to bind an ArrayCollection result coming in from the server to my DataGrid created dynamically in AS. The result data is not getting Displayed in the Grid. var dg:DataGrid = new DataGrid(); dg.width=650; dg.dataProvider=someArrayCollfromServer; I am adding the dgColumn as runtime based on some data from a XML and it is ...

Access a property of an item renderer in Flex

I have a datagrid with a combobox in it like; <mx:DataGrid editable="true" x="72" y="10" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)" dataProvider="{getAllResult.lastResult}" height="178" width="896"> <mx:columns> <mx:DataGridColumn headerText="STATUS" dataField="tooltip"/> ...

Using the enter key in silverlight datagrid

How can I program the enter key so it works exaclty like the tab key in a silverlight datagrid? ...

How Do I Add Colgroup Tag to ASP:Datagrid Control?

How do I add a colgroup tag to the datagrid control so that I can style each column using css? ...

How to save an expression datacolumn to the database?

I have a datagridview on a form with multiple columns. Three of the columns are expression columns. One column is subtracted from the second and the result is displayed in the third. Everything works great but when I hit the save button and save to the database, all the columns are saved to the database except the three columns used in t...

How to bind combo box in data grid, in .net winforms?

i am developing billing software using .net win application. so i need to bind combo box in grid column1, column2. how can i do that? ...

Flex DataGrid labelFunction not getting called

I have a DataGrid where one of the columns has a labelFunction. When I run the application a scrollbar shows up in the DataGrid indicating to me that it has data but there is nothing in the DataGrid. When I scroll items start showing up. When I Debugged it I noticed that the labelFunction was never being called until I started scrolli...