Situation:
Hello! I am trying to populate a WPF toolkit DataGrid with a MS Access database.
Here is what I have right now (it works):
//Load the datagrid with the database
private void LoadDataGrid(string filename, string path)
{
string databaseConn = "Provider=Microsoft.ACE.OLEDB.12.0;" +
...
Hello! How can you iterate in the rows and columns of a WPF DataGrid like with a Forms DataGridView in C#?
For example, if you have Forms DataGridView you can do something like this:
for(int i = 0; i < formsDataGrid1.Rows.Count; i++)
{
MessageBox.Show(formsDataGrid1.Rows[i].ToString());
for(int j = 0; j < formsDataGrid1.Columns.Cou...
How do you get the content of a single cell of a WPF toolkit DataGrid in C#?
By content I mean some plain text that could be in there.
...
Hey there,
I am working with the the WPF Toolkit DataGrid and currently have a problem with committing data back to the source.
My grid is bound to a CLR object list and I have a converter with both the convert and convert back methods implemented.
The two way binding works fine if the user hits Enter in the cells but if they deselect...
I am using the WPF Toolkit's DataGrid, and I need one of the columns in the grid to display a hyperlink with static text that will just call an event handler in my code.
I don't want any data binding going on with this link, just the link itself displayed with static text for each record, e.g. "Delete". (The underlying purpose of the l...
How do I databind a WPF Toolkit DataGrid column header value in code (not XAML)?
DataGridColumn fooColumn = new DataGridTextColumn
{
Header = "Foo",
Binding = new Binding {Path = new PropertyPath("BindingPath"),
Mode = BindingMode.OneWay}
};
This databinds the content of the cells of the column. But ho...
When I use the mouse wheel to scroll the WPF Toolkit DataGrid on a Vista 64 Machine I get a cryptic low level error:
at System.IntPtr.op_Explicit(IntPtr value)
at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at System.Windows.Interop.HwndSour...
Hi guys
I'm getting nuts here with this:
ObservableCollection<Employee> list = new ObservableCollection<Employee>();
dgEmployees.ItemsSource = list;
When you debug the list variable, it's empty (list.Count =0), but then I bind it to a DataGrid (WPFToolkit), it shows me a blank row.
In immediate window, for dgEmployees.Items it's sho...
Hi,
Can anyone please help me to Bind 2 WPFDatGrid to 2 different datatables in a simple way?
FYI: DataTables are filled with the CRM Data.
Also please let me know how to make relationship between these two tables
...
Hi,
I've got a strange problem with WPFToolkit DataGrid - after disabling AutoGenerateColumns, after adding only 1, narrow column, in the background of column headers appears full name of DataContext. It doesn't behave like a column - I can't neither resize or disable it.
Previously I didn't know about this problem, because I had few w...
When the calendar control provided in the WPF toolkit (and included in .Net 4) is displayed in "month view", it displays days from the previous and the next month, filling up the entire calendar. When you click on a day of the previous or next month, it will scroll a month backwards or forwards automatically. This behavior is throwing my...
Hello,
I have a WPF datagrid and would like it's height to equal the sum of the heights of it's rows + header.
i.e. if my datagrid header is 100px and I have 4 rows, each 50px in height the total height of my datagrid should be 300px.
Is there a way of declaratively specifying that the height should match the sum of it's contents?
T...
I am getting an odd intermittent bug that seems to ve related to the VisualStateManager in the WPF Toolkit. I am developing an application that uses the Toolkit (June 2009), but not the VisualStateManager. Nonetheless, I am getting the following error:
'TextColor' name cannot be found in the name scope of 'System.Windows.Controls.Grid'....
Here's one for all you XAML wizards: The WPF Toolkit Calendar control (June 2009) appears to have a bug. The bug only crops up when you modify the control template for the calendar, specifically, the PART_CalendarItem.
At the end of this message, I have included the XAML for a (Blend 3.0) window that declares a Calendar and assigns it ...
WPF Toolkit, How to apply date format in C# for datepicker control?
...
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...
Can some one suggest good and stylish toolkits for WPF which you like more.
I have found the WPFToolkit in CodePlex.
Exciting Kits so far
Telerik
Blacklight
FluidKit
...
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=...
Hi,
I have a WPFToolkit DataGrid Control. The user should be able to toggle row details for individual rows. Details can be open for multiple rows at the same time.
To display or hide row details the user has to check or uncheck a checkbox within the first grid column.
How can I make the grid show or hide row details using a checkbox ...
How to work with silverlight 3.0 with visual studio 2008?
Which version or service packs of visual studio should be installed to work with silverlight?
I installed silverlight toolkit july 2009 release but controls are not visible in visual studio 2008 RTM i.e. installed in my PC?
...