wpfdatagrid
WPF DataGrid: resizing columns
I have a System.Windows.Controls.DataGrid with property CanUserResizeColumns assigned to True. Now I can adjust the width of the columns by using the mouse left button click between 2 column headers.[详细]
2023-04-06 00:13 分类:问答DataGrid view refreshing from database
Hy! I created a view to populate my datagrid,开发者_运维知识库 and I want to update this view and my datagrid. The problem is that in my database the view is refresing but in my form i dont see the ch[详细]
2023-04-05 13:27 分类:问答DataGrid Row Background Based On Cell Value
I am currently working on a C# WPF datagrid. I have a DataGrid which has auto generated columns and the code connects to an SQLite Database and creates a dataset and then this dataset is set as the Da[详细]
2023-04-04 16:41 分类:问答How to change content of a WPF datagrid cell, depending on objecttype
I have a collection consisting of two different object types, with the same base class. subclass A needs to display a button in a cell and subclass B needs to display a checkbox in a cell (the same co[详细]
2023-04-03 10:13 分类:问答Adding Event Handlers to WPF DataGrid throws NullReferenceException
I\'m not sure what\'s wrong with the DataGrid I\'ve written. The contents show up correctly but when I try to add in a OnSelectionChanged event handler, sth odd happens.Please help me![详细]
2023-04-03 09:24 分类:问答Cell Merge in Datagrid in silverlight
I want to implement cell merge like functionality in a datagrid in silverlight. I have s开发者_Go百科ome rows which display a single value and some rows return all the values for all columns.So How to[详细]
2023-04-03 06:19 分类:问答How do I bind the background of a data grid row to specific color?
I have a observable collection that binds to a data grid. I also have in the view model a colo开发者_如何转开发r property and I want to bind the background of each row in the data grid to the color pr[详细]
2023-04-03 02:56 分类:问答How to trigger PreparingCellForEdit event from a (Edit)button click in Silver light 4
I have a Data Grid in Silverlight 4 with 3 columns along with a column which contains \"Edit/Apply\" button.[详细]
2023-04-02 13:11 分类:问答Customized Datagrid in WPF
I am new to wpf and working on an accounting application, My problem is so simple yet I am astonishedthat I can not find a simplistic solution for this, it goes like this:[详细]
2023-04-01 02:53 分类:问答Setting max autogenerate width on autogenerated columns in a datagrid
I have a DataGrid that I\'m binding to DataTable that got filled by a SQL query.I would like the columns of this grid to be auto-generated with a width of up to a certain number of pixels, but still b[详细]
2023-04-01 02:21 分类:问答