wpfdatagrid
How to cancel datagrid edit
I have a view that uses a usercontrol that contains a datagrid. The requirements for the view state that if a user deletes the value out of the \"Customer Name\" column then leaves the cell, don\'t co[详细]
2023-03-25 15:56 分类:问答Unable to cast object
Why this code does not work private void dataGrid_LoadingRow(object sender, Microsoft.Windows.Controls.DataGridRowEventArgs e)[详细]
2023-03-24 16:57 分类:问答Need help with StreamReader, ArrayList, and DataGrid working together
I am working on a program that is basically a bill reminder, m开发者_JS百科ostly for a first program after having taught myself C# & WPF.I am able to have the user enter details, then save it to a[详细]
2023-03-24 02:52 分类:问答ColumnHeader arrows not reflected when sorting a DataGrid in XAML
I have a DataGrid with some sorting defined in XAML like so: <CollectionViewSource x:Key=\"DefaultSort\" Source=\"{Binding SearchResults}\">[详细]
2023-03-23 07:25 分类:问答WPF DataGrid Cancel Selection Change
I am working with WPF DataGrid in the MVVM manner and having trouble reverting the selection change from the ViewModel.[详细]
2023-03-23 00:38 分类:问答How can I detect when a DataGridRow's RowDetails has a non-empty DataTemplate?
I have a DataGrid that uses a DataTemplateSelector to select a Row Details DataTemplate, depending on the item object that\'s passed into the selector\'s SelectTemplate method. If no appropriate DataT[详细]
2023-03-22 06:22 分类:问答WPF Datagrid right align numeric columns
I\'m trying to create a style for the DataGrid cells in my application. I thoight that maybe there is a way to right align the numeric cells in DataGrid using a DataTrigger. Is this even possible?[详细]
2023-03-21 20:35 分类:问答How can I disable editing cells in a WPF Datagrid?
I\'m constructing a datagrid in Windows Presentation Foundation, and I have a problem. When a user double-clicks on a cell in my datagrid, the cell goes into edit mode. I want to prevent that. Instead[详细]
2023-03-21 14:48 分类:问答SharedSizeGroup on dataGrid
I have a DataGrid and a grid on my WPF application and I want their respected columns be the same size. I thought maybe I use SharedSizeGroup but it seems that DataGrid columns don’t have this proper[详细]
2023-03-19 13:13 分类:问答problem for bind radiobutton to database
Please following my code : <Grid DataContext=\"{Binding ElementName=dataGrid_services, Path=SelectedItem}\"[详细]
2023-03-18 12:14 分类:问答