I have a class:
class MyObject
{
float f;
int i;
}
When a collection of MyObject instances are bound to a grid on UI, we have a default display of the instances (one object for one row), which probably calls float.ToString() and int.ToString(). My question is that, how to customize this default behavior? How to add in some format ...
Hello,
I have a flex data grid with multiple selection set to true. If I try to drag let say 10 rows, then all those 10 rows move along with the mouse cursor and it looks really annoying.
I don't want to show any text when user is dragging the rows. I want the user to see only red and green images on the cursor which indicates whether...
The column header of the DataGrid is not a FrameWork element for some reason, and so you cannot use bindings to set things like the header text. Please correct me if that is wrong of if that has changed with .NET 4.0 (I am using the latest WPFToolkit from CodePlex now).
I am trying to use the DataGrid for a time sheet presentation where...
Is there anyway I can effectively call the equiv. of setText on a Flex Graphics object ?
Specifically I'm using a custom cell renderer to display data in a datagrid. The renderer uses the Graphics object to set the background colour of only a portion of the cell (say the left half) based upon the underlying data. I would like to be able...
My List<BusinessObject> has some public properties that I want to bind to columns in a DataGrid. Unfortunately, the names of the public properties are not good and I may not even know what they are until runtime. For this reason, I set AutoGenerateColumns=True and interecept each DataGridAutoGeneratingColumnEvent so I can inspect what it...
I have a datagrid which is editable and I need to send that back to the database via a CFC for insertion into the database after all the editing is complete. Dumping the array collection to cfdump tells me that I have an array with items and a structure but i cannot understand how to "loop" through each and insert into the DB.
There see...
I have a DataGrid defined with WPF Toolkit. The CellEditingTemplate of this DataGrid is associated at runtime with a custom function that build a FrameworkElementFactory element.
Now I have to access to control that is inserted inside DataTemplate of CellEditingTempleta, but I do not know how to do.
On web I found a useful ListView Hel...
I have a WinForms .NET datagrid whose data source is a List<cLineItem> called lines. cLineItem is very simple class with properties like units (int), description (string) and unit amount (float).
In code, i populate the list of lines and then set the data source:
dataGridView1.DataSource = lines;
This correctly populates the grid, ho...
When I place a Datagrid in a WPF Grid Layout container, the datagrid lengthens the Grid Layout.
I want it to occupy only the space available on screen.
...
Hello,
I'm trying to add a context menu to a column in the WPF datagrid and don't quite see how this is possible. I know how to add one to the datagrid, but I would like to have different menu items based on the column as well have the menu click event be aware of column or better yet the cell that the context menu was choosen for.
My...
I have added checkboxes into a DataGird, but they are not enabling they just disable when i click on another control giving you complete source code.
public partial class WinSubnetRangeInput : RibbonWindow
{
public DataTable objdtIPrange = new DataTable();
public WinSubnetRangeInput()
{
this.InitializeComponen...
I'm trying to add a couple of buttons on each row in this datagrid of a legacy ASP.net app.
Here's the code:
<asp:datagrid id="dgView" style="Z-INDEX: 101; LEFT: 0px; POSITION: absolute; TOP: 0px" runat="server" Width="100%" BorderColor="Black" AllowPaging="True" PageSize="8">
<AlternatingItemStyle Font-Size="XX-Small" Font-Names="Ver...
Keep in mind that for this I am limited to using ASP .NET 1.1, as for this environment I cannot upgrade to 2.0 or beyond
Essentially, I have a very simple datagrid that has a checkbox in one of the columns, which is a template column...the code for the datagrid is this:
<asp:datagrid id="dgDates" OnItemCommand="gridEventHandler" Bor...
Hi,
i am porting my application from windows forms to WPF. I have found that datagrid is available only through the WPF Toolkit. However i have some issues with performance. This could be because something that performed alright in windows forms does not in wpf since it has to be implemented differently. Anyhow, i am doing something lik...
Hi, Is there any way to disable a few columns for a particular row in flex datagrid?
I have a datagrid with about 10 or more columns, say for example a few column names are: Item Id, Item Name, Item Status and VerifiedState. Initially I want the column Verified State to be disabled.
Now When the value of the column, Item Status is Rev...
I have a DataGrid.
It's ItemsSource is bound to the ModelView's CompositeCollection through the ViewModel.
The CompositeCollection consists of 2 ObservableCollections.
The display on the grid is fine. I am able to see the collection.
However, when I try to edit one of the rows, I get a crash (NotSupportedException) of:
"'EditItem' is no...
I have 2 advanced data grids, one above the other. They both have the exact number of columns, and pertain to each other in the same way. But each is showing different data, which is why I split into 2 grids. However, on each one you can resize the columns, what I would like is to make it so that if you resize a column on either datagrid...
Hi,
I have a performance problem with the (WPF Toolkit) DataGrid. It contains about 1.000 rows (only eight columns) and scrolling is horribly slow and laggy. Also the initial load of the Window containing the DataGrid takes 5-10 seconds.
I did some research (using google and StackOverflow) but couldn't find anything besides the advice ...
Im working on a large database application using WPF. So far, I was able to create a DataContext using Link to Sql class, store it in an ObservableCollection, and fed it to my DataGrid as DataContext.
The main table in SQL I'm trying to read/write looks like this
Work_Table
WorkID[pk int] | frn_CustomerID[fk int] | frn_UserID[fk int] |...
I am trying to implement the following functionality:
Flex data grid has 1 default row created. When user clicks on the second row, a new row needs to be created and made editable.
Here is what works already - user tabs over the columns and when the user tabs while in the last column, a new row is created with default values.
Here is ...