datagrid

Dojo: programatic sort in enhanced data grid

How do I create a programmatic sort in EDG? I have used the doh robot, but I want to do it directly, I've noticed the sort methods use an e event, is there anyway I can generate or obtain this e event? ...

Find GridView Row from another gridview

Hi, I have 2 datagrid (using .net 1.1). I need to access column of second grid ( i need to make a column of second grid as disabled) when i click "Cancel" link button in First Grid. How can this be done? ...

Can I use Property Trigger to get selected items from WPFToolkit datagrid ?

Hi, I have a wpfToolkit-datagrid. Can I use a trigger for the following "IsSelected" property to update a selectedItems list in view-model ? < Style TargetType="tk:DataGridRow"> < Setter Property="IsSelected" Value="{Binding IsSelected, Mode=TwoWay}" /> < /Style> ...

Disabling Tool tip of the controls

Hi I am using one DataGrid with templatecolumn of Asp:Label Control. In Design Page i used Tool tip for this control, But in the ItemDatabound event, it will checks the number of characters of the text of this label. If the character is less than 40, i have to disable the tooltip for that control only.. But i couldn't finalize this task...

WPF Toolkit Datagrid - Can I call a function in view-model, on selection of a row ?

Hi, I have a WPf Toolkit-datagrid..in my application which follows MVVM pattern. How I can call a function in view-model if user selects a particular row in datagrid ? ...

How to create Master/Detail view with two datagrids in ColdFusion

In Coldfusion, I have Master and Detail data that I need to display in two separate cfgrids; like the typical Customers/Orders scenario. My cfgrids are bound to cfc functions which populate the cfgrids. In my current dataset, only one Customer has Orders and when I click on this record in the Master datagrid the Detail datagrid displa...

Flex 3 Adding image in datagrid

How do i add a image to a column in the datagrid? Currently my code is <mx:DataGridColumn dataField="image" headerText="Photo Image" editable="false"> <mx:itemRenderer> <mx:Component> <mx:HBox height="30" horizontalAlign="center"> <mx:Image source="{'assets...

How to bind collection of collection to a datagrid in Silverlight 4

I have a collection of Departments, which has collection of Teachers and which has collection of all the classes they teach. I was able to create a collection of collection of collection from the data source. Now I want to bind the data to datagrid. What I want to bind is the classes taught in the school group by teachers by department. ...

Databind gridview with LINQ

I have two database tables, one for Users of a web site, containing the fields "UserID", "Name" and the foreign key "PageID". And the other with the fields "PageID" (here the primary key), and "Url". I want to be able to show the data in a gridview with data from both tables, and I'd like to do it with databinding in the aspx page. I'm...

Type-aware rendering (and editing) of tabular data in pyqt4

I would like to have a very short / minimal example of how to create some tabular widget with different types of item in it. In the first round let's say I'd like to render [["Hello", 12, True], ["World", 13, False]] (Hello as string, 12 as number (right-align), True as a checkbox for eg.), but it would be nice to have Dates, Colors, an...

Custom CheckBox in WPF DataGrid does not update binding

In my Visual Studio 2010 WPF application, I have the following (simplified) style: <Style x:Key="MyStyle" TargetType="{x:Type CheckBox}"> <Setter Property="Background" Value="Blue" /> </Style> If I use it as the ElementStyle AND EditingElementStyle in my DataGridCheckBoxColumn: <DataGridCheckBoxColumn Binding="{Binding IsEnab...

Dynamic DataGrid columns in WPF DataGrid based on the underlying set of data (and their type)

Hello everyone, I've got kind of a conceptual question. I am in the process of wrapping some statistics classes I wrote into WPF. For that I have two DataGrid(-Views, currently in WinForms). In one DataGrid each row represents a column in the other. There I can set-up different variables (as in mathematical/statistical variables) with...

Validating collection elements in WPF

I would like to know how people are going about validating collections in WPF. Lets say for example that I have an observable collection of ViewModels that I am binding to the items source of a grid, and the user can add new rows to the grid and needs to fill them. First of all I need to validate on each row to ensure that required fiel...

Adding a sortcomparefunction to Dynamic Data Grid in flex

Hi, I am trying to create a dynamic datagrid in Flex 3, I have a list of columns a list of objects which correspond to datapoints for those columns which I fetch from a url. While the grid works perfectly fine the problem is that sorting on the columns is done in lexical order. I am aware that this can be fixed by adding a sortcomparef...

Datapager in silverlight 4 -Nested datagrid visibility issue

I have a datagrid in silverlight with child datagrid nested in it. Also I have a DataPager on the outer datagrid. The code looks like this: <data:DataGrid x:Name="dgData" Width="600" ItemsSource="{Binding}" AutoGenerateColumns="False" IsReadOnly="True" HorizontalScrollBarVisibility="Hidden" CanUserSortColumns="Fa...

Adding Radio button to Calendar in Flex 3

I'm trying to make a Calendar which can have radio buttons embedded in specific dates, which will be chosen by making a service call, but that's not a problem. I have had two approaches to it so far, one could be taking a datagrid, and making it a calendar, and then placing the radio button inside the cell using an item renderer. The sec...

Flex DataGrid reads a field from lastResult.node as number

Why does Flex 3 DataGrid read a string from XML lastResult.node as number? A field is saved as var_char in mysql, php reads it as string and pass it OK. If there are more then 16 charaters it gets rounded.... For example: this in database cell: 12345678901234567 gets read in DataGrid as nubmer as 12345678901234568 this is in database ...

WPF DataGrid button style

If I have a DataGrid in a XAML form, and add the following style: <Style TargetType="Button"> <Setter Property="Margin" Value="2"/> </Style> The data grid locks up the application. I found if I put the style into a resource block that isn't seen by any data grid, then it seems to be happy. However, if I want to have the styl...

Cannot update any cells in datagrid in vb6

Hello I'm trying to update a row in datagrid but the problem is that i can't even change its cell values I had set my datagrid AllowUpdate property to true , but i can't still change any cell values Option Explicit Dim conn As New ADODB.Connection Dim cmd As New ADODB.Command Dim recordset As New ADODB.recordset Public Action As String ...

Datagrid doesn't refresh on changed data

Hi. Is there any way to have a datagrid listen to the database and automatically update the data if the database data is changed? I use a SQL Server database. I'd like to use Linq-2-SQL if possible thx in advance :D ...