datagrid

Dojo DataGrid - one column not displaying data

I have used the same method accross my site for displaying a datagrid, I'm only seeing this problem in one column on one grid. All data in the 'firstname' column is showing as "...". I'm not seeing any errors or warnings. <span dojoType = "dojo.data.ItemFileReadStore" jsId = "userStore" url = "/usermanager/usergrid" > </spa...

WPF Keep column sorting with Datagrid

Hi, I have several datagrid where I need to update the informations. Things is, since more than one person works on the system at the same time, the datagrid need to be refreshed on a regular basis. When I refresh, I lose the sorting that user had. Is there a way to keep it? thanks ...

how can i read the header text from a datagrid when autogeneratedcolumns="true"

I have chosen to use a datagrid with the autogeneratecolumns="true" because I do not know in advance how many columns will be loaded. I've also included an item template to allow selection of a row for editing. When the edit item command fires, the datagrid is hidden and a new panel made visible where dropdownlist controls are genearte...

Silverlight DataGrid Property error - "The member "AutoGenerateColumns" is not recognized or is not accessible"

I am trying to modify a Datagrid in Expression Blend 3 using Silverlight 3 tools. When I attepmt to open the file Blend shows the "Invalid XAML" error and in the XAML shows errors on certain properties within the DataGrids declaration. <my:DataGrid x:Name="dataGridLegals" AutoGenerateColumns="False" GridLinesV...

datacolumn datagridview replace specific value

i have a datagridview in my C# program.after i bind it to a datasource , i want to replace some value in a specific column in automatically generated rows.for example i have columns in which have 0 or 1 values , and i want to replace true or false . what should i do ? ...

right click context menu for datagrid

I have a datagrid in a .NET winform app. I would like to rightclick on a row and have a menu pop up. Then i would like to select things such as copy, validate, etc How do i make A) a menu pop up B) find which row was right clicked. I know i could use selectedIndex but i should be able to right click without changing what is selected? ri...

How to set alternate row color in flex datagrid?

Hi, What is the method to set different colors for alternate rows in a flex datagrid? So that two adjacent rows are identified easily? ...

Set different SelectionChanged Event Handler for a DataGrid inside another DataGrid

I have a DataGrid (WPF Toolkit) with a custom combobox like edit template of a cell. This custom combo box have another datagrid like popup. I have this problem: In the window constructor I assign the event handler to the master datagrid with this statement this.dgDoc.SelectionChanged += new SelectionChangedEventHandler(dgDoc_Selectio...

Cancel a Datagrid rowcommand

Hi I am trying to fix somebody elses code and this is my first ASP.NET dataVIEW experiance, basically I want to check that a textbox has a value, The DataVIEW has been coded so that on the "add/update" an ok/cancel button is used. In the Rowcommmand I have detected the update successfully, found the text box, and varified the contents ...

WPF Datagrid - How to validate multiple rows and mark all invalid ones?

Hi, I have a datagrid with rows where the validation depends on his siblings. So far I'm using BindingGroups and a custom ValidationRule to validate multiple rows a the same time. But I can't figure out how to change the appereance of the invalid row entries. I return a ValidationResult and my grid gets a red border but my style gets ign...

Binding DataGrid to List in wpf

I trying to bind a List to a DataGrid. Here is the code snippet: public class Parson { public string LastName { get; set; } public string FirstName { get; set; } public Parson(string lastName, string firstName) { LastName = lastName; FirstName = firstName; } } public class Persons : List<Parson> { ...

Unable to set DataGridColumn's ToolTip

I tried the following: <tk:DataGridTextColumn Header="Item" Binding="{Binding Item.Title}" ToolTipService.ToolTip="{Binding Item.Description}" /> And I don't see any tool tip. Any ideas? Is it even implemented? ...

Where is DataGrid RowDeleted event??

Hello I am looking for an event I can handle for row deletion. ...

Asp.net binding big dataview to DataGrid

Hello, I have a dataview with around 2000 rows. At page load I want to bind the dataview to an object datagrid : dataGrid.DataSource = dv; dataGrid.DataBind(); However the time response is very high (a couple of minutes). What can I do to make it faster ? Or at least can I not freeeze the client ? ...

Show image in WPF DataGridColumn

Hi, I am Binding my wpf DataGrid to an ObservableCollection from code. I am adding the columns by code (as they may change on every report) The UI Deisgner now wants a Column wiht Images for "Delete this row" and "do a special action" on this row. So two Images in one column, and when clicked different behaviour. Any ideas how to get t...

C# datagrid: event handler for changing column width

Hi, I'm programming a windows mobile app in C# and I need to resize the columns of a datagrid when columns from another datagrid are resized. Is this possible ? Thanks. ...

Flex: Make advanced data grid height of rows?

I have an ADG along with some other components in a VBox. The number of rows of items in the ADG is variable. I want the height of the ADG to be however tall it needs to be to show all the rows without scrolling. This is because I want the containing VBox to handle all the scrolling. The reason being, is because sometimes there is a ho...

add file icon to datagrid in flex

Hello, I'm trying to put some File objects into a DataGrid, but I can't find a way to display the File.icon in there. So far I have this: (ms[x] is a File) listData.addItem({ filename:ms[x].nativePath.replace(/.*\\/,""), path:ms[x].nativePath.replace(/\\[^\\]*$/,"\\"), icon:ms[x].icon.bitmaps[0] }); and <mx:DataGrid x="358" y="0"...

Silverlight Datagrid RowEditEnded

I have a SL DataGrid that has two columns. I need to be able to catch any change to the a row and save it into an undo stack. I setup the event RowEditEnded and tried to add to the undo stack there. The problem I'm running into is that I have no way to get the new value from RowEditEnded. If the column is a ComboBox then it updates t...

How to add button dynamically in datagrid in wpf?

I am trying to do something in WPF. I have a datagrid that I am binding with some values. What I need is that whenever I call that page the second time, I need to insert a button to all the cells of all the columns in the datagrid(except for the cells in the first column which are bound to some value). How can I do that? Please help. ...