datagrid

how to show popup menu on click of checkbox column header in datagrid?

I am using the datagrid from WPF toolkit in a WPF windows application. It has a datatemplate in the rowheader which creates a checkbox column used for selecting the rows. If you click on the header row of the checkbox column (the top leftmost cell in the grid), it will check all the checkboxes in the grid thereby selecting all the rows....

Is it Possible to Merge Cells in a datagrid view

hi all is there any way to merge cells in a datagrid view or atleast can we show on the screen like some columns in the grid belongs to one group. for example ill take three columns: column1: year field(a drop down type) column2: month field(a drop down type) column3: date field(a drop down type) all these three should be grouped to d...

How to list datas according to the letter typed in a textbox from the database in a datagrid or list box

Hello, I want to list the values in the database in a datagrid or listbox according to the character typed in the textbox . for example : if i type "a" then list all the values starting with "a", if "ab" then so. Please help me ...

INotifyPropertyChanged and INotifyCollectionChanged in F# using WPF

I have an array of sample information that is constantly refreshed in a background thread. Currently I am constantly assigning this array to a datagrid's ItemsSource property using a DispatcherTimer. That works but it resets any visual locations, for instance if the user places his cursor in the middle of the datagrid the execution time...

How do I Get a WPF DataGrid to Save Changes Back to the DataBase?

How do I get a WPF DataGrid to save changes back to the database? I've data-bound my DataGrid control to a DataTable object, and populated that table with a very simple SELECT query that retrieves some basic information. The data shows up just fine in the control. But when I use the control to edit the data, the changes are not pus...

Free Php Script to show DataGrid

I want to show an online editable datagrid like in asp.net to the user. My development is in php and i have mysql database. Is there any free of cost alternative which is ajax powered as well for me to enable the user to add/edit/modify data online. I have a MQSQL Database. Ain't there any control which can do databdinging to a mysql da...

loop datarows of datagrid, windows mobile....

I have dataGrid, which have one dropdonw column.(whcich contains "true"/"false". on button click, I want to loop through each gridvew, and findout whcich item is seleccted from droopdown from each row and store it. How can I loop the datagrid, there are some properties,funtioaly suppoerted by DataGrid for Mobile WinForms. any one help...

How can I turn off Validation in the Silverlight 3 DataGrid?

I have a Silverlight 3 DataGrid that I am creating in code, in order to handle transposing data. For every column I need, I create a DataGridTextColumn, and set it's binding in code. I set the Binding object = TwoWay and set ValidatesOnExceptions = false and NotifyOnValidationError = false The grid worked fine under Silverlight 2, but...

Is swapping the columns and rows of a flex datagrid possible?

I have a 1 row, many column flex datagrid. I would like to turn the dataGrid on its side, so that the column headers become a single column running down and v.v. Is there a way to do that in the DataGrid? Or am I stuck manipulating the data presented to the grid? If so whats your recommendation? The main idea here is I have an objec...

Separate the value in a datatable from the display in a datagrid

I have a datatable that contains an entry for the volume of a sound. The user can pick from values 1-10 or choose 'auto', in which case the system handles it. Internally, this is represented as an integer, where 1-10 represent volume values and -1 means 'auto'. The application is localized, so the exact string for 'auto' will vary by ...

Silverlight3: DataGrid vertical scrollbar missing when binding to PagedCollectionView

Hello, I have a Silverlight DataGrid and I have set the ItemsSource to an instance of PagedCollectionView (I'm wanting to paginate my data with DataPagers). I've noticed that the vertical scrollbar disappears when using the PagedCollectionView - which is a problem for me because I have the DataGrid nested inside of a Grid in which the ...

silverlight 3 datagrid x:name issue

I have recently uplifted my SL2 solution to SL3. I have a UserControl that contains only a datagrid: <UserControl x:Class="Case.CaseDataGrid_View" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:data="clr-namespace:Syste...

Can't Insert new record from WPF Datagrid via LINQ-to-SQL

Ok, what I'm doing is (I think) rather simple. I have a LINQ-to-SQL data context set up and one of the tables is Users. In the designer, it shows the class as "User" with the source as "dbo.Users". It's access is Public, and I can reach the database to retrieve and update just fine. The class is set to "Use Runtime" for the I/D/U ope...

From DataTable to BindingList

I am in the process of switching over from DataTable to BindingList. I bind the DataTable to the DataGrid object. Here my dilemma: while I certainly see the advantages of switching over, my circumstances will make it a bit complex and I am wondering whether it is worth it to switch over. My scenario: I have a DataGrid which displays c...

How do I handle an exception caused by double-clicking between rows in a DataGrid?

Our DataGrid-heavy application likes to throw exceptions when double-clicking the space between rows used for resizing. The exception is The " DataGridColumnStyle cannot be used because it is not associated with a Property or a Column in the DataSource. Most of our DataGrid-based forms inherit from one form called GridForm. Our DataSo...

How to set the Dojox Datagrid row height to a single line

Hey all, I'm trying to fix the height of a Dojox 1.3 Datagrid to a single line (like Excel). The current functionality is to automatically increase the row's height when more data than will fit into a single line is available. Is there an easy way to accomplish this? It seems like it should be built in functionality for a datagrid, c...

is it possible to read the colum name of a cell in gridview ?

Hi i want to find the column name of the cell in the below event of a datagridview. protected void grvDetailedStatus_ItemDataBound(object sender, DataGridItemEventArgs e) { for (int i = 0; i <= e.Item.Cells.Count - 1; i++) { System.DateTime cellDate = default(System.DateTime); if (System.DateTime.TryParse(e.Item...

c# Dotnet 2.0 CustomColumnStyle : putting a winforms panel inside a datagrid cell

All, I realize that CustomColumnStyle is the way to customize columns of cells in a DataGrid. How would I use this to make each cell a Panel. I would like each cell in a column to be a Panel, so I can add controls to it, like multiple buttons etc. Thanks in advance for code. -Jeremy ...

How to increase/descrease font size in Dojo DataGrid

Hi there, How can I increase/decrease the default dojo datagrid font size, should I do this in CSS or there's property I can set when extending the DataGrid class. Thanks in advance! David ...

WPF DataGrid ComboBox Column: Propagating Header Combobox throughout column...

Hey there! Here's my question: I've got a Datagrid in WPF and I have a first column that is a DataGridComboBoxColumn. What I'd like to do is to have a header for that column also with a combobox: altering the header with propagate throughout the column. I can get this done visually, but when I submit the data, the list that is bound w...