A graphical user interface element that presents a tabular view of data.
1
vote
1answer
22 views
How to access a control inside DataGrid.RowDetailsTemplate?
Following is my XAML:
<DataGrid.RowDetailsTemplate>
<DataTemplate>
<DataGrid Name="innerGrid" IsReadOnly="True" AutoGenerateColumns="False" Margin="10,10,5,5" Width="400" ...
0
votes
0answers
16 views
Sorting items in a list containing FileInfo items
I have here simple question about algorithm of comparing and removing items from a list.
So the thing is that i have folders containing .max files which are named according this pattern :
...
0
votes
1answer
19 views
AS3 - pass varible to class function (button to dataGrid)
I am trying to create buttons in my dataGrid in Flash. However, I am a begginer and I don't now how to make my function which generates button column take parameters which I need to use to each ...
0
votes
1answer
15 views
WPF - Change DataGridTemplateColumn cell background based on CheckBox value
I need to change the background color of a DataGridTemplateColumn cell based on whether or not the CheckBox within the DataGridTemplateColumn is checked. Seems that this should be possible within ...
0
votes
0answers
14 views
Automatic CRUD with LINQ using BindingSource and Grid
I have a GridView bound to a BindingSource. My LINQ entity relationship is simple:
Customer -> Orders.
So binding is simple, too: BindingSource source = new BindingSource(context, "Customers");
When ...
0
votes
0answers
8 views
Save DataGrid to XML
I am right now trying to save a DataGrid to XML file using C#.
The DataGrid is binding to an existent XML file (let's call it XmlFile1),
data shown in DataGrid might get edited, by clicking a button ...
0
votes
1answer
23 views
WPF - overlay text on top of datagrid row
I have a WPF datagrid where certain rows will be disabled. In addition to disabling the cell contents, I'd like to present to the user some text that overlays the row with an explanation such as "Row ...
0
votes
1answer
18 views
Two way drag and drop between listbox and datagrid in wpf
I am looking for some help implementing two way drag and drop functionality between ListBox and DataGrid column in WPF. i have searched through the net and managed to grab drag-drop samples but they ...
0
votes
0answers
23 views
DataGrid column size (Compact Framework) C#
I'm new with DataGrids.
My Code:
private void populateGrid()
{
conn.Open();
string query;
query = "select company_id_no, company_name, last_update_datetime, username from ...
0
votes
0answers
3 views
Silverlight DataGrid Title
I want to display the data grid's title along with the data it display but seems to find no suitable property for that. I searched the issue but all i find about data grid coulmn header and not the ...
1
vote
0answers
32 views
WPF bind datagrid datacontext to outer property but datagridrow to his item
Hello I use datagrid in WPF application to display/change some data from database.
I have problem that i have binded datagrid datacontext to outer property for itemssource of observablecollection, ...
0
votes
0answers
22 views
WPF toolkit Datagrid row wrap
I saw this post already and was wondering if/how it could be implemented into a WPF toolkit DataGrid? In case of bad link, essentially I would like a DataGrid to have a set Width and move all of the ...
0
votes
1answer
12 views
Select a row of datagrid using UI Automation
I'm writing a UI automation software. I need to select a row in the datagrid and then click on the run button. I tried most of the example codes in the internet and they didn't work for me. For ...
0
votes
1answer
16 views
MVC Grid with dynamic column addition, removal and rearrangement features
My MVC 4 (Razor) project needs to have a grid with the following features:
1. Dynamically adding columns to the grid by dragging and dropping DIV elements to the grid:
Initially it will be an empty ...
0
votes
1answer
23 views
Edit DataGrid column name dynamically and Remove some columns
I bind some data to a datagrid in c# like this:
DataGrid1.ItemsSource = Logs.Where(elem => elem.Name == ActiveName);
But i want to change some of the columns names that appears on datagrid and ...