When attempting to use a ComboBox in the CellEditingTemplate of a column of a Silverlight4 DataGrid, the binding expression for ItemsSource is not resolving correctly.
The RIA DomainDataSource I wish to use is called installerGroupDomainDataSource and the following XAML works fine at page level. The list is populated and when I bind the...
I have a datagrid in a WPF populated from a csv file.
This is done with Linq and populating the datagrid via CollectionViewSource.Source.
The requirement is for any updates/changes made to the data in the datagrid to then be saved back into the csv.
I need to know how to save any changes to the data? I've been playing around with some...
Hello,
I have a dataGrid component in flex. My grid has few rows. I simply want to make the last row bold. I just can't figure how to do it.
I thought about an idea : create a factory that gets parameters so that i can pass the itemRenderer the total count of rows. But, i don't know how to check the current row in the itemRenderer itsel...
I am developing a WPF 4.0 application where I need to make a grid that contains a column with either textbox or a dropdown depending on the row. Example:
| Name | Value | Help |
| PROP1A | [textbox] | Description of prop1a |
| Prop2A | [dropd...
I have a datagrid where one column calls a custom an itemEditor like;
<mx:DataGridColumn dataField="city"
width="150"
headerText="City"
itemEditor="components.ComboCity"
...
Is there a way to determine whether a WPF DataGrid is in edit mode / which row is currently edited?
EDIT
Duplicate: http://stackoverflow.com/questions/3248023/code-to-check-if-a-cell-of-a-datagrid-is-currently-edited
...
in my procedure in code-behind I am trying to create a DataGrid with autoGenerateColumns = true :
DataGrid NewDg = new DataGrid();
NewDg.AutoGenerateColumns = true;
NewDg.Width = Unit.Percentage(100.00);
NewDg.DataSource = ds;
NewDg.DataBind();
I need to also add another col...
How to Load DataGrid with two related tables using MVVM light, I am using .NET RIA and silverlight 4.
for example if my data tables are:
userInfo-
userID, Name, AddressID
Address -
AddressID, StreetName, Zip
how can i create datagrid that displays [Name, StreetName, ZIp]
...
I have a HyperLinkButton in every row of a datagrid in my silverlight app. I need to fire an event so I am adding a handler to the click event of the HyperLinkButton in the DataGrid.LoadingRow event. The problem is the event is firing three times (more accurately, the handler is being added three times. I tried removing the handler be...
Hi
I tried to understand but failed. In WinForms I can build up some rows in a datagridview. By using Application.DoEvents (not nice but works) I can see how it is building up also when the list is very huge. I just want some similar in WPF.
Here is my project:
http://www.goldengel.ch/temp/FileContent%20Replacer.zip
I already posted...
Hello,
I'm using an IValueConverter in conjunction with DataTriggers (all in code, not XAML) to implement conditional styling for a WPF DataGrid (from codeplex.com). I have all the code in place, but when I update the styling (after obtaining some values from form elements) the datagrid does not update the display of the elements. I h...
I'm using PrintDocument in Silverlight. I'm printing the Silverlight DataGrid in Silverlight page. When I'm printing it only half of the DataGrid is getting printed....so Can I set the preferences for PrintDocument anywhere. I would like to print it as a Landscape type. Thank you.
...
Where "optimal size" is "all rows and columns are visible, but not more". (e.g. no dark gray background is visible)
Edit:
To clarify: I dont want to auto resize the columns. I have fixed width columns and rows. I want to have the whole control resized. e.g. reduce the width if there is dark gray space visible, increase the width if not ...
Hi,
I'm using default drag/drop on Flex DataGrid, however, the dataGrid itself has an itemrenderer.
Looks like:
public class FlashFileDataGridRenderer extends Label{
public function FlashFileDataGridRenderer(){
super();
}
override protected function updateDisplayList (unscaledWidth:Number, unscaledHeight:Number):void {
...
After a few hours trying to reach some working sample i decided to try my luck here. I am a newbie to WPF, but things should get easier with time ...
I am trying to have a DataGrid showing an XML file i have. That's it.
I have in my application cars.xml
<cars>
<car type="Ford" size="4" />
<car type="Mercedes" size="2" />
...
I have changed DataGrid's DataGridRowGroupHeader's controltemplated and have placed 1 checkbox and 1 textblock instead of content presenter.
now when i do grouping... in some cases if i click on checkbox of one group... it automatically selects another group also.
can anybody please give some advice for this?
...
I am binding the data in a data table from two different datagrid
protected ICollection BindGenerateReport()
{
DataTable dtGenerateReport = new DataTable();
DataRow drRow;
for (int innerCounter = 0; innerCounter < dgInvoices.Columns.Count; innerCounter++)
{
dtGenerateReport.Columns.Add();
...
I've recently started to use Visual Studio 2010 and its new version of the WPF Datagrid control. I've noticed something weird with it and was wondering whether it was my code, by design or a bug in the control?
I've created a simple datagrid and bound it to a dataview. If I set its IsEnabled attribute to false, I would expect not to b...
how could i remove these two colors for the header.... i could override rollover for the columns and leave the selection, but i want to remove these two effects from the header and i couldn't find a way to do that....
...
I am trying to implement a tree view datagrid with two levels.
I am binding my data as follows:
private void BindData()
{
string sqlQuery = "SELECT dept_code, dept_name FROM Department";
conn = new SqlConnection();
conn.ConnectionString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\saher\Documents\T...