datagrid

TextBox inside Grid does not work properly

Doesn't show space typing inside textBox. And needs two clicks to accept focus. Try it at http://archive.dojotoolkit.org/nightly/dojotoolkit/dojox/grid/tests/test%5Fgrid%5Fformatters.html I use FF 3.5 ...

How do i save changes back to database from wpf toolkit datagrid???

i write this code in my project: DatabaseDataContext dataContext = new DatabaseDataContext(); IQueryable<Available_Time_Teacher> att = from r in dataContext.Available_Time_Teachers where r.Teacher_ID == id select r; ...

How do I delete records from a Datagrid as well in the database in ASP.NET using checkboxes?

How do I delete records from a DataGrid as well as the source database in ASP.NET using a checkbox to select them? ...

ContextMenu Binding Source within a DataGrid using MVVM

I've got a datagrid column as below: <toolkit:DataGridTemplateColumn> <toolkit:DataGridTemplateColumn.CellTemplate> <DataTemplate> <TextBlock Text="{Binding Path=LabelName}" Background="{Binding Path=Color}"> <TextBloc...

Silverlight Datagrid - Getting The Data?!

Hello! This may sound stupid....I've followed Scott Morrisons Blog and have implemented a silverlight datagrid and populated it with some data. My question now is, when I edit the datagrid and change some of the data, how do i then retrieve it back?! I guess what i'm trying to say is - does it get posted back somewhere!? ...

C# WPF fill datagrid or listview from XML file

I have a well formed XML file I would like to fill a datagrid with. I would prefer using the AutoGenerate feature of WFPToolKit datagrid, but could hard code the columns in. The trouble I am having is getting the xml file contents into a datagrid. I had it partially working in a listview, but think a datagrid would be more suited for m...

How to make gridview a child element of a treeview in wpf application

I am trying to populate a datagrid (or gridview) as a child elment of a treeview from the database. I am able to get data from the DB in the tree, however, it doesnt seem to work for the datagrid. Here is my xaml code: <Window x:Class="AttemptUsingHirarchichalData.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presenta...

to keep the order of FLEX Datagrid columns as its dataprovider ?

Hi all, The flex DataGrid colums are arranged alphabetically by default. I need to order the DataGrid colums as per the order in its dataProvider. The dataprovider is the result of the HTTPService . And the number of columns is not known to us . The number of columns depends on the HTTPService result. Any help is appriciated. Thank y...

DataGridView navigation on Enter/Return

I'm trying to use the Enter key to move to the next (non-read-only) column in a DataGridView. Under normal circumstances, I handle the KeyDown event and everything works great. However, when I'm editing a field, the Enter key always completes the edit and then moves to the next row. Weirdly enough, I'm getting the following sequence of...

How do I dynamically populate the options in a combobox inside of a grid based on another row in Flex?

I'm trying to setup a DataGrid that contains a column of combo boxes. The values of the combo boxes are defined by data specific to that row. I cannot get this to work though, I'm asking for a solution to this, either fixing what I have below or a recommendation on a different way. One of the columns of my DataGrid has an object deriv...

WPF toolkit datagrid spreadsheet

I would like to add excel spreadsheet functionality to the WPF toolkit datagrid, can this be done? I am building a wpf client-server application and I want client tohave wpf toolkit datagrid cells which would behave like excel spreadsheet cells would behave... Meaning they would have formulas and such... just like the spreadsheet woul...

How to handle WPF Datagrid double click without using code behind

We're using Views and ViewModels in this project, and as a result we're trying to have as little in the code-behind for the View as possible. I'm trying to tie the MouseDoubleClick event for a WPFToolkit Datagrid to the same code that a button in the same view already is using. The button is declared as the following: <Button Content=...

Flex - Vertical Align Cells in a Datagrid

I'm having trouble vertical aligning text inside cells in a DataGrid in Flex. I tried this.setStyle("vertical-align", "middle) in an itemRenderer on the column but it doesn't seem to work... I tried verticalAlign as well. ...

Flex DataGrid with ComboBox itemRenderer

Hi there, I'm going spare trying to figure out the "correct" way to embed a ComboBox inside a Flex (3.4) DataGrid. By Rights (e.g. according to this page http://blog.flexmonkeypatches.com/2008/02/18/simple-datagrid-combobox-as-item-editor-example/) it should be easy, but I can't for the life of me make this work. The difference I have ...

ASP.NET Datagrid paging issue: How to maintain the search key on page clicks

I have an ASP.NET page to show search results of a website.I have few static pages and one ASP.NET page(to show results).In my static HTML pages i used form and inside there is a text box ontrol.When user submits the form (form submit to the aspx page), in the aspx page load, i am reading the text box value content and using that i am bu...

silverlight 3 datagrid drag-drop column vertically

Is it possible to allow a datagrid column to be dragged vertically and dropped into an area above the datagrid which triggers it to group by that column? If so, how would i best implement this into a silverlight 3 application? Heres an example of what it could look like: http://www.syncfusion.com/content/en-US/products/feature/windows-f...

WPF Listbox - change itemsource of control in datatemplate

I have a listbox with a datatemplate that holds a number of controls bound to my collection. What i want is to change the itemsource for one of these comboboxes dependant upon the value selected in one of the other comboboxes in the same row. I don't want to change the itemsource for all corresponding comboboxes within the rest of the r...

How to pass variable from grid to new page without loading the first grid again

I have a page that loads data into a grid. When the user selects one of the rows of the grid, I need to send them to another page and open that second page based upon the ID selected in the first page. Currently, I'm posting back to the first page, building the grid, getting the ID from the row, stuffing it in session, then response.red...

How to Catch ASP.Net RadioButton CheckChanged Event in a DataGrid

I have a RadioButton in a TemplateColumn of a DataGrid. Each RadioButton is part of the same group to make sure that only one is selected and they are set to AutoPostBack. What I would like to do is trap the OnCheckedChange event and handle it like a button click within the DataGrid (using the OnItemCommand event handler). Does anyone ...

Editable Datagrid in WPF

Hi, I have a program where I need the user to input data in a datagrid. I though the simple act of setting the 'CanUserAddRows' would be enough to let the user add new rows, but it seem that it won't cut it. Is there something else I need to define to make them work? My datagrid have combo boxes and textboxes in them so it's pretty co...