datagrid

Consuming Database Result Sets with Silverlight DataGrid

So I have a WCF Service that gets a result set from a database (not SQL) - I can get this data as a DataTable, string[][], etc. I can't use LINQ or ADO.NET Entity Framework very easily as it's not coming from an SQL DB. So my question is: -What's the best way to package this data for transmission across the wire? I can use any data...

Is there Selected Tab Changed Event in the standard WPF Tab Control

Hi, Is there an event that an be used to determine when a tabcontrol's selected tab changes in WPF? I have tried using TabControl.SelectionChanged - but it is getting fired many times when a child's selection within a tab is changed. Thanks! Jon ...

Is there a way in the WPF Toolkit datagrid to have a header below the column headers but above the first row

Hi, I looking for a way to create an area that indicates a user is at the top row of the WPF Toolkit datagrid. (Showing the scrollbar scrolled down is not enough for the user). I need something that sticks out and says "this is the top row" basically. Messing with the entities that that the grid is bound to will not work for me becaus...

How to navigate a datagrid using key presses?

It seems to me I remember that my DataGrid was once able to take me to the first row of a sorted column with the text starting with the same letter as a pressed key, i.e. type 'k' and the cursor would be located at the row with 'Kenny' as the contents. I don't know if I've accidently disabled this property or am confusing this feature wi...

How to add unbound check box column to WinForms DataGrid (.NET 1.0, 1.1)?

How to add unbound check box column to databound DataGrid (WinForms .NET 1.0, 1.1)? I cannot add fake column to the data source because it is data view coming from elsewhere. ...

A Data Structure to represent bookable timeslots

What suggestions do people have for a timeslot data structure? I have a number of activities and I'm planning to display them in a datagrid with days as columns and timeslots as rows. This suggests to me a timeslot data structure with 5 properties for the five days (the columns) for every value I want to use e.g. a timeslot ID and the n...

How to specify a ToolTip for a control in a Style from XAML?

I'm using a the WPF datagrid from the Microsoft CodePlex project. I have a custom control that I want to databind to a field from the row of the datagrid. I can't for the life of me figure out how to specify a tooltip on a datagrid row. The closest I've come is to use a RowStyle with a Setter to set the tooltip, but this only seems to ...

C# datagrid vs DevExpress XtraGrid, speed wise

Hi all, I have a program that loads 10,000 rows into a datagrid and the datagrid can be slow to render/paint and occassionally doesn't display, you can tell it has loaded with data but the grid goes blank. I was thinking of replacing the datagrid with DevExpress XtraGrid, has anyone used this and can I expect it to render/paint quicker?...

Wpf DataGrid : changing the XML field binding at runtime

I am developing a WPF User Control for displaying portions of XML files. I'm trying to make the User Control flexible, so that I can assign the column headings and field data bindings from the outside of the control. I've found that I can easily change the column headings, but while the following code seemed to have promise, SertMember...

Animate row disappearance in WPFToolKit DataGrid

I have downloaded WPFToolkit, and I am using the DataGrid provided in this package. I am trying to animate a row disappearance when the row is removed, but I don't know how to do it. Does anyone know how it can be done? ...

Hiding TemplateColumns in DataGrid

I have a DataGrid in ASP.Net 1.1 with TemplateColumns most of the Template Colums are having HHTMLInput Hidden Field as ItemType. The Issue is if I am setting TemplateColumn Visible attribute to true I am not able to access those controls from javascript. Even I have trieed putting ItemStyle-CssClass with following definition display:no...

Dynamic Data Grid

My project is re engineering a an HTML data grid constructing using SQL query generated XML and XSL into an HTML table. The content of the table is not known at deployment as the SQL used to build the XML data is generated by the application at runtime. Given the distaste for tables in the CSS world I am hoping someone has a better sug...

WPF Image bind in DataGrid

How to bind an image in DataGrid? <my:DataGrid.Columns> <my:DataGridTemplateColumn Header="状況写真" Width="100"> <my:DataGridTemplateColumn.CellTemplate> <DataTemplate> <Image > ?????????????????? </Image> ...

[WPF ToolKit: How to set selected value from combobox to the current cell?

Hi I am using following code to bind combobox to the datagrid in wpf. but when i select item from combobox and tab out, the grid does not hold the selected value. I would like to set the selected value to the current cell of datagrid. <dg:DataGridComboBoxColumn.ItemsSource> ...

How to get the text from DataGrid with Rational Robot?

Hello, I am new to Rational Robot, so it could be that my question sounds rather silly :) I want to write the following test - create a User with the ID xxx, close the new user creation, then open the list of all available users and select the user with ID xxx from it. The list is in the DataGrid. ID is a text in one of the cells So t...

Setting Autoscroll true makes focus lose in .net datagrid

I have a huge datagrid control embedded in a window and Autoscroll property to true. Control also has textboxes in addition to the grid .This grid is meant for monitors with resolution above 1600(and so scrollbar not visible at that resolution). But Autoscroll property is set to make incase user uses it in smaller monitors also. Working...

Row and Column count of data grid in C#

Consider i have a data grid, i need to find the number of rows and coulmns in the data grid. How can i do this in C#.? ...

Windows Mobile: how to highlight row in datagrid and compilation delays

Hi, I have two Windows mobile questions: how to Highlight row in datagrid (after i run any query) ? why after 20-30 compilation, it takes for 6-7 minutes to compile (the first time takes 1 minute)? Thanks in advance! ...

Silverlight (3.0) - Data-grid - User adding data via data-grid

Hi, I've only been using Silverlight for a little over 24 hours. So I am still finding me feet. I'm Currently using Silverlight 3 (Beta) (I require its great offline mode feature) When using the data grid that is bound to a data source, is it possible for users to add data via the grid? Or is the data grid just limited to displaying ...

DataGrid slow to Redraw

I'm using a System.Windows.Forms.DataGrid. It is populated with about 3000 rows and redraws very slowly. If I minimize and maximize my Form all the other controls just display but I end up watching the DataGrid redraw line by line. Everything in this DataGrid is readonly if that makes a difference. Update: I'm not really sure how to pr...