Skip to main content

All Questions

Tagged with
1 vote
1 answer
66 views

PowerShell - WPF DataGridView has a small additional gap between first column and the Grid

I am building a PowerShell GUI script with WPF. The DataGrid control has two columns. $dataGridView1 = New-Object Windows.controls.DataGrid $dataGridView1.Name = 'ListBox1' $dataGridView1....
Sajith S.K's user avatar
0 votes
1 answer
46 views

WPF DataGrid2D ItemsSource Memory Leak

I have a graph item and matrix item. Graph item is canvas where i draw ellipses and lines. In Matrix item I contains matrix. And I used this library (xmlns:dg2d="clr-namespace:DataGrid2DLibrary;...
Bird's user avatar
  • 11
0 votes
0 answers
31 views

As the scrollbar scrolls, the visibility of the labels gets messy in datagrid

The visibility of my labels in the datagridd changes according to being true false by binding with property. As the scrollbar scrolls (because it is not fully loaded), the labels get mixed up, what is ...
n01's user avatar
  • 31
0 votes
1 answer
142 views

WPF GridView different stringformat for each item on gridviewcolumn binding

I'm trying to bind the StringFormat of a column binding depending on each datacontext item's individually. Here's the sample code: xaml: <ListView ItemsSource="{Binding Symbols}"> &...
Roni Tovi's user avatar
  • 876
0 votes
1 answer
106 views

Detect blank cell fill with default value on enter/leave datagrid textbox

From my datagrid data template textbox value filled from a file, i want to restrict the end user to enter integer with 'dot' but i dont want the end user to leave the cell value as a blank/empty cell, ...
user838691's user avatar
0 votes
0 answers
29 views

C# chart X Axis shorten the displayed Value

is there a way to shorten the displayed value thats on the X axis. Right know its displaying year, month, day, hour, minutes, secounds, milisecounds and Timezone. Is it possilbe only to display hh:mm:...
Zaros's user avatar
  • 9
-1 votes
1 answer
645 views

how can i remove scrollbarr arrow wpf

I want to remove scrollbar arrow and change the color and round the edges how can i do
emirongrr's user avatar
0 votes
1 answer
86 views

how can i change color of row background ? wpf c#

<DataGrid x ColumnWidth="*" Background="#2c386c" BorderThickness="0" CanUserAddRows="False" ...
emirongrr's user avatar
1 vote
1 answer
150 views

how to create a datagridview dynamically in c# wpf

How do I dynamically create a DataGridView in C#? Could you please provide an example? I have List of Suffix and List of Prefix The suffixes are : BA1, BA2, BA3, BA4,BA5, BA6, the préfixes are : ...
MadaraUtchi's user avatar
-1 votes
1 answer
401 views

C# WPF SelectionChangedEvent - reset selection - better options?

I have a datagridview populated with items and I am using a SelectionChanged event to populate textboxes from that data when selected. If I make a selection, everything works. If I click elsewhere in ...
Kennetic's user avatar
  • 123
0 votes
1 answer
374 views

How to add text in row header using code behind for DataGrid in C# WPF

I have a DataGrid which is populated with an array. How do I add text in row header using code behind? So far I've added data like this. public static DataView GetBindable2DArray<T>(T[,] array) ...
Radu Mihai's user avatar
-1 votes
2 answers
842 views

C# WPF change DataGrid row (background) color based on the data

I have Datagrid view as you can see below : the selected one is "Status" which have 3 kinds of values (Paid, unpaid and other). I want to make the background of each line based on the ...
Arsalan Ahmadi's user avatar
0 votes
2 answers
560 views

C# WPF Autocomplete while Editing Cell in DataGridView

I have a problem integrating the AutoComplete function into my DataGridView. When I customize a cell, I want to open a list of suggestions. Similar to the Google search bar. I've tried a few things ...
Mario Allw's user avatar
0 votes
1 answer
305 views

how to import only selecte row from datagridview to rdlc report in C#

i am having an rdlc report like this; and a datagridview like this; on another wpf window which also contains my buttonimport; My major aim is to import only (any) one selected row from the ...
IsraelEdwards's user avatar
0 votes
1 answer
473 views

how to use the foreach loop to pass each row of a wpf datagridview with Thesame data source as a report back to the report

how can i bind my report/report Viewer to a datagrid view with the Data source as that of the report dataset? ive created an ID card design in a Report. I bind all textbox in the report in my database ...
Kcisrael Kicso Acquah's user avatar

15 30 50 per page
1
2 3 4 5
19