Im hoping there is a "simple" way to allign all the data grids, so basicly all the colums have the same width as one another when posible ( Some of the grids have more colums then the other once ).
Is this posible to do in html,xml simply or do i need to manualy set the width of eatch colum myself?
The site is a ASP.net ( .NET 3.5 ) ...
I use the following code to bind an arraylist to a datagrid
//fill datagrid
public DataTable configData
{
get
{
DataSet dsTemp = new DataSet();
DataTable Tables = new DataTable();
dsTemp.Tables.Add(Tables);
dsTemp.Tables[0].Columns.Add("val", System.Type.GetType(
...
Hello,
I'm creating a custom UserControl to be used inside a DataGrid editing template.
It looks like this:
<UserControl
x:Class="HR.Controls.UserPicker"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:tk="http://schemas.microsoft.com/wpf/2008/toolkit"
xmlns:x="http://schemas.microsoft.com/winfx/2006/...
In my Silverlight 3 user control I am showing a basic DataGrid control. I need to generate the columns programmatically as follows:
Style headerStyle = (Style)Resources["ColumnHeaderStyle"];
DataGridTextColumn col = new DataGridTextColumn();
col.HeaderStyle = headerStyle;
dataGrid.Columns.Add(col);
The style is defined as follows:
<S...
Hi All,
I have a linkbutton that is nested in a datagrid that is nested in a datalist (yes, very strange, but unfortunately it's part of the site which I cannot change). Essentially I want the linkbutton to fire an event handler that calls Response.Redirect(e.CommandArgument)). In other words, I already have the URL that I want to redir...
Using the WPF datagrid from WPFToolkit I want to show errors only during the save operation. Currently it seems to validate when you move off the row, hit enter, etc.
There are two types of row level validations I need to perform:
1) Before service call to ensure fields on object are set.
2) After service call, to show any service va...
I have a problem with a edit templete of cell in a WPF datagrid (WPF Toolkit). The template is builded with a ComboBox and the ItemsSource of
ComboBox are loaded at runtime.
This is the mean code...
<ObjectDataProvider x:Key="dataValuesProvider" MethodName="GetValues" />
<toolkit:DataGrid
ItemsSource="{Binding Path=MyItems}">
<toolkit...
Hello
I have two data grid objects. Let's say that my first dg is called source and second dg is called target. Both dg objects use observable collection as a source. I fill target dg based on selected items from source dg. Now for every item in target dg I want to find corresponding item in source dg. I tried to use IndexOf method but ...
Hey folks,
my mission is to select an item in a DataGrid instance with nothing but the coordinates on screen.
We are implementing right-click functionality in our Flash application, with the goal of being able to right-click a DG row, which would select that row plus show a popup window containing some context commands.
I have managed...
Hi all
I have a weird problem with datagrid. I have a list with 2 items, inside every item there is a ListCollectionView.
A datagrid is binded to the selected item's ListCollectionView.
if I add (in code) a sort description to the selected item's ListCollectionView ,select item 2 and then select item 1 again the ListCollectionView so...
How can I see the sort button & direction per column in my datagrid?
Or even better, how can I see a seperator between the column headers?
here's my grid code:
<Window.Resources>
<Style x:Key="HeaderTextStyle" TargetType="{x:Type dg:DataGridColumnHeader}">
<Setter Property="Background" Value="DarkSlateGray" />
<Set...
Hello!
Is it possible to dynamically show row index for DataGrid rows ?
I have a static ArrayCollection which is set to be DataGrid's data provider and I would like to always have row numbering for each populated row (e.g. in a column called "#").
Thanks!
...
I am using the PagedCollectionView for grouping. I have a DataGrid and a textbox with a search button. The ItemSource of the grid is my PagedCollectionView, and the PagedCollectionView wraps an ObservableCollection because items in the grid can have their bound objects updated by a background process. When you click search, I first clea...
I have the following question regarding Flex/AIR data grids:
Can I access the value of a var of one aggregated object as a dataField of a column of the DataGrid?
What I would like to have is:
public class A {
public var id:String;
}
public class B {
public var a:A;
public var value:uint;
}
<mx:DataGrid...
I have a WPF Toolkit DataGrid bound to an ObservableCollection of Car in my view model. Car has a PropertyChanged event and the setters of each of its two string properties fire the event. I also have the grid's SelectedItem property bound to a property in the view model of type Car, also called SelectedItem.
On the same window as the...
Hi, I have a scenario where i load an ICollectionView in a datagrid.
In some cases I modify the data where the collectionview gets it's data from. If I then reload the grid with configGrid.ItemsSource = configData; for example, the data gets updated.
Now the thing is, I sometimes open a new window using:
var newWindow = new Edit(movi...
Is there a way to select a single cell in a Flex DataGrid, and then either select the text inside of the cell, or select the entire cell for copy + paste? It doesn't even have to copy into an excel friendly format, flat text would be fine. So far, I have only been able to select an entire row, and that doesn't seem to copy very well. I a...
I am doing something in wpf where in a datagrid is populated.
I need that for each row in the datagrid, when i point my mouse, a tooltip should be visible containing an image. And this image will be different for each row of the datagrid. How do i go about it. I have been able to do this:
Image img = new Image();
BitmapImage bmp...
hi
i have gridview control in that control i need to add and image in a cell how to do it in c#.....
please help me thanks in advance....
...
I have a datagrid with a column containing a checkbox. I want to change the value of the bound Selected property when the row is clicked:
NOTE: I don't want to use the SelectedItemChanged event because this doesn't work properly when there is only one row in the grid.
...