datagrid

how we set the path of image in datagrid item template image column(Wpf Data Grid)

hello All i have a problem i have a Wpf data grid which have three item template image column i want to set the image source through cought behind how can i achive it i m unable to fetch my image inside column my xaml code of grid is inside plz help me` <my:DataGrid.Columns> <my:D...

CurrentCulture in Silverlight4 and DataGrids

I having problems with DataGrid component: It shows en-US date-format (mm/dd/yyyy), but the CultureInfo.CurrentCulture is pt-BR (dd/MM/yyyy). Stranger is the fact that datetime is show in pt-BR when edit it: image I can just do a IValueConverter to show it as a string (tested and worked, using CurrentCulture), but then I lost the date ...

combobox perfoming different formulas based on user selection

I have a datagrid where users put in different numbers for 3 different columns. These values are then calculated after the user puts in each value for each column. I also have a combobox component inside my datagrid. What I want this combobox to do is perform a different mathematical formula based on what the user selects. For example, i...

DataGrid in SketchFlow Blendability : Please Help

Hi, I am trying to figure out how to show two different states of a datagrid in Blend/SketchFlow on a page. I would like to show the datagrid empty on load of the page and then change it to show results data using databinding with sample data when the Search key is pressed. I have made two copies of the datagrid - one empty and one with ...

how to export datagrid item into excel file using Jquery?

how to export datagrid item into excel file using Jquery? ...

export datagrid item into excel file

function exporttoexcel() { $('#export').click(function() { $.ajax({ url: 'exportdata.aspx', cache: false, success: function(data) { } }); }); } I want to export datagrid item into excel file. when i use aler(data). item is displaying but excel save as and dow...

how can i sort dd/mm/yy date format in datagrid using flex ?

i used array collection sort method like below . but still sorting wrongly . Any other solution for sort date using flex3 public function SortingDate(ArrColl : ArrayCollection, field : String) : void{ var sortA:Sort = new Sort(); sortA.fields=[new SortField(field,false,true,null)]; ArrColl.sort=sor...

Datagrid checkbox styling

Hello First sorry for my english. I have started recently my first project on wpf. I´m styling a custom DataGrid who have been defined programatically (the xaml code doesn´t exists). I have styled all that i need in my datagrid control except a checkbox that i wrapped inside. The problem is that in other place of my application i defined...

WPF Data Grid - How to hide the next column/row that is visible?

I'm using a WPF data grid to bind to an object (i.e. not a database). I have the horizontal alignment on Stretch. I currently have it within a Border, which is within a Grid. However when I run the application the DataGrid has a blank column and grid showing. That is say I have 5 columns & 5 rows, then there is a blank 6th column and...

Trigger an itemEditEnd event within the itemEditor

This might be an easy one for you DataGrid experts out there. I following an example for adding rows to a DataGrid dynamically from within a row http://www.switchonthecode.com/tutorials/adding-dynamic-rows-to-flex-datagrid My tweak that I am trying to acoomlish, is to have a custom itemEditor that is a form with two TextInputs and an O...

how to allow to type text in combobox placed inside datagrid ???-winform using c#

how to allow combobox placed inside datagrid to type text. it just binding the values already stored in the database. but i need to type the value in the combobox which is not shown in the binded values... how to make the combobox as editable column??? any help... ...

Explicit DataGrid CellStyle Setter is overridden by an implicit cellstyle in the same context!

I have a weird issue with DataGrid in WPFToolkit (.NET 3.5) and the built in version in .NET 4.0: When creating a keyed DataGrid-style with an explicit setter for CellStyle to another keyed style it works as suspected. But when also creating an keyless style for DataGridCell it will override the explicit CellStyle-setter in the DataGrid...

Resizing DataGridView columns based on the grid width

I'm having a windows form. In this form I've datagrid control which has few columns with predefined width. When I resize the form either by using maximize box or using mouse, datagrid automatically resizes itself to fit the form. This is done using anchor property of the datagrid. Now I need to resize the width of the columns as well s...

DataGrid UI virtualization

Hello, i have a DataGrid. And a bind a List<> to it and add at runtime in the code a few columns. After adding this columns the vertical scrolling isn't very good. The added columns in code are dynamic created, i think between 10 - 50. And there are about 140 rows. How can i fix it? I read something about ui virtualization, but i dont ...

List users in a datagrid, using WCF + RIA with Silverlight 4

How to list all registered users from a RIA Service? I tried to expose they by using a IQueryable (from a Domain Class Service), but got the error "The entity type 'User' is exposed by multiple DomainService types." My first clue is that the user is already exposed, but found nothing in code and there is nothing related to 'User' in 'Da...

WPF DataGrid Grouping does not show up due to binding error

Hello, I get this error message: System.Windows.Data Error: 5 : Value produced by BindingExpression is not valid for target property.; Value='System.Windows.Data.ListCollectionView' BindingExpression:Path=MaterialList; DataItem='MaterialBrowserListViewModel' (HashCode=24964411); target element is 'CollectionViewSource' (HashCode=365180...

I need the Expand / Collapse for RowDetailsTemplate

I have wpfTolkit datagrid. He has DataGrid.RowDetailsTemplate I need to do the button when clicked it will Expand / Collapse. How to do this I could not find the event you want <Custom:DataGrid RowDetailsVisibilityMode="VisibleWhenSelected" SelectionMode="Extended" CanUserAddRows="False" CanUserDeleteRows="False" CanUserResizeRows="Fal...

once i add data to a row, a new row dynamically added in datagrid in WPF once i add data to a row How?

i found a problem adding a new row automatically in datagrid in WPF once i fill the data in the row and find same problem deleting the row automatically once i delete all its data ... could any one help me plz ? ...

Add row to Flex DataGrid without changing dataProvider

I am creating the standard "Click to add row" control but I really don't want to dirty the dataProvider with a "placeholder" since it is bound to the model and could end up in the database. Is there a way to add a row that isn't represented in the dataProvider? I started down the road of adding an item directly to listItems but then that...

How to perform Single click checkbox selection in WPF DataGrid?

I have a DataGrid with first column as text column and second column as CheckBox column. What I want is, if I click the check box. It should get checked. But, it takes two click to get selected, for first click the cell is getting selected, for the second clicks the check box is getting checked. How to make the check box to get checked/u...