Hello,
I have a silverlight datagrid which have as DataContext a list of SuiviCaBo(personnal object).
I also have a chart with columnSeries.
My goal is when I click on a bar inside the chart, the line of the datagrid that match the information is highlighted and the right column is selected. I succeeded in hightling the row by using th...
Hi.
I'm wondering if it's possible to bind a gridcolumn (field) to a method or function of an entity?
For example I have two entities Person and Company that both inherit the abstract entity Addressee. In my grid I'm listing all Addressees (both persons and companies). I have a column, Name, in the datagrid that I whish to bind to a f...
Hi,
I'm having an issue styling the WPF Datagrid, I've styled the column headers (of type ColumnHeader).
But when the data in the columns does not fill the full width of the grid an additional column is added to pad out the grid. This column ignores the ColumnHeader style and looks out of place presumably because the element has a d...
Hello
Recently, i encountered a problem; when I bind a recordset to datagrid ,and run the application the datagrid is not populated even though recordset has data
I use the following code
Option Explicit
Dim conn As New ADODB.Connection
Dim cmd As New ADODB.Command
Dim recordset As New ADODB.recordset
Private Sub InitializeConnec...
I have a asp:DataGrid which holds data in two columns on my webpage. The user can select a row for editing which I do by setting the value of “EditItemIndex” and rebinding the grid. What I would like to do now is restrict the editing to just one of the cells in the row rather than both. Is this possible?
...
I'm using a Silverlight 3 DataGrid control and have set the SelectionMode to Extended. The DataGrid takes care of managing the extended selection for me in an almost perfect manner out of the box, but a key piece of the logic is interfering with me.
I have a cell that can function as a drag and drop thumb and initiate a drag operation b...
What would be the most efficient way to set customized formatting of the column in DataGrid? I can't use the following StringFormat, as my sophisticated formatting also depends on some other property of this ViewModel. (e.g Price formatting has some complicated formatting logic based on different markets.)
Binding ="{Binding Price, Stri...
i want to retrieve data from WPF datagrid depending on certain condition. But the problem is, i am not sure if the data exist. How to check it?
...
I have a wpf data Grid where I created twlo columns. But whenever I run the window the datagrid shows a extra column. I can't figure out why.?
Below is my code
<Custom:DataGrid
Background="White"
AlternatingRowBackground="#103D7EC5"
RowHeaderW...
Hi,
I'm trying to display the data from two sql ce 3.5 sp1 database tables linked with foreign key - Customers and Orders. When the customer is selected in a datadrig, I want the other grid to be populated with the Orders.
I'm using a query:
var profiles = from c in db.Customers.Include("Orders")
select c;
A...
My main form in my application has a datagrid view that can have 1 to many user selected inputs. Column 8 of this grid is for the user to input "time in minutes." I have a separate class where I have built a timer that counts down from whatever time the user specifies down to 0. What I need is to create a series of alarms that go off ...
I'm using WPF Toolkit DataGrid and DataGridComboBoxColumn. Everything works well, except that when selection change happens on the combobox, the selectedvaluebinding source is not updated immediately. This happens only when the combobox loses focus. Has anyone run into this issue and any suggestions solutions ?
Here's the xaml for the ...
Hi,
I have a flex datagrid with 3 columns. The first column contains the image name(unique key). The other two columns have username and size details.
I want to split the username into lastname, firstname, address and some other stuff.
Can we have multiple rows in the grid for one image? Tried multi-line, it works but we need to keep add...
Hello Friends, I need to get the value of the item clicked and the name of the columns.
for each(item in colunas) {
var itemok:String = item.dataField;
Alert.show(''+datagridlist.selectedItem.itemok); // show value of column
}
But this way it returns 'undefined'.
But if I put the name already in functio...
Hello Friends, I need to get the value of the item clicked and the name of the columns.
for each(item in colunas) {
var itemok:String = item.dataField;
Alert.show(''+datagridlist.selectedItem.itemok); // show value of column
}
But this way it returns 'undefined'.
But if I put the name already in function, I...
Funny, how sometimes the simple things bite me in the behind.
I can bind a DataGrid nicely to a Collection of some arbitrary class, using a DataGridTextColumn like this:
// bound to List<Class>
<DataGridTextColumn Header="Name" Binding="{Binding Name}"/>
Now I want to bind a DataGrid to a simple Collection of String. So since there i...
Hi,
I want to make a WPF datagrid look similar to the HTML grid in the following picture:
http://img443.imageshack.us/img443/2563/saltoftheearth.jpg
Does anyone know an easy way to do this ?
Regards,
S.
...
Hi, I'm trying to display data from WcfDataService (VS2010) in WPF DataGrid. Everything works. except of normal validation.
I was trying to make validation both with default WPF validation and IDataErrorInfo, but I can't get working all features I need. That is list of problems and questions:
1) How to disable DataGrid built-in check f...
I have a C# WPF app that every time the user opens a new file, the contents are displayed in a datagrid.
public partial class MainWindow : Window
{
public TabControl tc = new TabControl();
public MainWindow()
{
InitializeComponents();
}
private FromFile_click(object sender, RoutedEventArgs e)
{
...
Hello,
I want to change the orientation of the datagrid to horizontal in silverlight 4.
i.e. I want to display the headers on the left hand side and the values corresponding to it on right hand side.
how can I do it?
Thanks.
...