How come ActualWidth of a DataGridColumn is not affected by changing the value of its Width property but it is when I change the value of its MinWidth ? In other words how does ActualWidth get computed or changed ?
...
Hi stackers,
I'm having a bit of a time trying to get Dojo grids (1.5) to play nice. Specifically I've spent about two weeks of work trying to implement a grid that allows for our result set data to collapse into rows, where rows can be expanded. Data comes in as a full set in JSON format, using ItemFileReadStore as the store. Any sub...
Hi All,
I have a datagrid with DataGridTemplateColumn and DataGridTextColumn in it.
In my backend code I'm looping thru the datagrid.Columns Collections to see if the column has a binding or not.
I need to know How can I determine if the Columns type is of DataGridBoundColumn or NOT??
Any ideas which method/property does that.
...
Hey,
I have a user object which consist of some data and other classes of data:
[DataContract]
public class User
{
[DataMember(Order = 0)]
public int UserId
{
get; set;
}
public UserCredentials UserCredentials
{
get; set;
}
[DataMember(Order = 1)...
Hey,
I am having a problem updating a datatable that is bound to a datagrid. Tried a bunch of approaches but the problem is t*he underlying datatable reverts back to its initial state* everytime u click a command.
Here's the example code:
On Label Click:
protected void OnUserDataGridCommand(object source, DataGridCommandEventArgs e)
...
Hi,
I'm trying to get this code working, any help would be greatly appreciated.
<mx:DataGrid x="359" y="221" width="623" height="176">
<mx:dataProvider>
<fx:Object name="Garbage Collection" code="7777" hours="2"/>
<fx:Object name="Road Repair" code="8888" hours="6"/>
<fx...
Hi All I have master DataGrid and detail DataGrid. I need a arrow beatween them align to selected row in master?
[ Master ] [ Detail ]
[ row ] [ row ]
[ row ] [ row ]
[ selected row ] > [ row ]
[ row ...
I have a datagrid:
<mx:DataGrid id="resultsDataGrid"
height="328" width="604" paddingRight="0" editable="false" y="43" horizontalCenter="0">
<mx:columns>
<mx:DataGridColumn headerText="Title" dataField="title"/>
<mx:DataGridColumn headerText="Updated" dataField="updated"/>
</...
I thought it should be a simple thing for WPF, but I can't make it work...
I have an int property (Divisions) on my class and I want to bind it to a DataGrid column.
<DataGrid AutoGenerateColumns="False">
<DataGrid.Columns>
<DataGridTextColumn Header="Number of Divisions" Binding="{Binding Path=Divisions, StringFormat={...
i'm creating a user control in C# .net compact framework 3.5.
And i'm using a DataGrid Control with a DataTable as the DataGrid's DataSource.
i need to make some of the grid columns wider.
for some reason i can't...
i just couldn't find the method or property that controls the column width...
any ideas?
thanks in advance...
...
I am trying to access the header that is at the intersection of the rows and columns headers in a Net3.5 WPF DataGrid.
Josh Smith calls this the "Empty Header" in an article on a different grid control and I would call it the "RowColumn" header since it in the first position for both the column and row headers and is the only header tha...
I wish to highlight the columns on a WPF datagrid as the mouse moves. Some of the problems I face are:
Getting the coordinates of columns to test for when the mouse is over them
Changing the background color of a column
Any help will be much appreciated.
...
I have a TabControl where each tab contains a DataGrid. When the user switches between tabs it seems that the DataGrid is created from scratch. I say this becuase of three things that I've noticed: the columns are automatticaly recreated, the current sorted column is lost, and selection is lost.
I would love to be able to retain the cur...
Here is what I want to do:
I want to have a datagrid that displays a total value for each row. Lets say for example I have a datagrid. In this datagrid on each row I have five columns. Of the five columns four are for the user to input numbers. The fifth column is the the "total" column which is the result of a formula that calculates t...
I am using a DataTrigger to replace empty cells with '-' text. My code:
<DataGridTextColumn Header="Time taken" Binding="{Binding Path=finish}" Width="Auto" x:Name="x">
<DataGridTextColumn.ElementStyle>
<Style TargetType="{x:Type TextBlock}">
<Style.Triggers>
<DataTrigger Binding="{Bindi...
Hello!
Does anybody knows how to unselect ALL the rows on a Windows Forms DataGrid control, using C#? By default, the first row is always selected... Also, I don't want to allow any kind of selection; do you guys know any method to this?
I've already searched here but can't find...
Any help would be great!
Cheers!
Edit:
Ok, i've fou...
Hi,
I have a datagrid with editable items in it and I have a button to create a new instance of such an item. The datagrid is updated with the new item but I can't select the recently added item and start editing on it.
Below is my code:
private void btnNewKenmerk_Click( object sender, RoutedEventArgs e )
{
Kenmerk newKenmerk =...
I have a silverlight datagrid.
Validation works very well using DataAnnotations. However if I add a new row to the grid I don't get validation kicking in until I actuall try and edit cells.
Is there no way to force the grid to validate when a cell has not been clicked on?
...
I have a datagrid with a long content list and its first row is selected as default. I want the scrollbar of the datagrid to be scrolled to the bottom, when a new row is added. I thought I achieved this by a selectionChangedEventHandler and scrollIntoView(item) method, but I just realized that when I try to scroll down by hand-without ch...
Hi All,
I am using same datagrid to display two different sets of data based on user selection. The problem is data grid is not getting refreshed automatically when i edit data. I guess the problem is because of ItemRenderer or Item Editor. I am using LabelRendere extended from Label but doesn't override set data. Is it necessary...