datagrid

I am not able to Disable CheckBox in GridView

I am not able to Disable CheckBox in GridView , whats the problem with my code ? can somebody please take a look at my code and suggest something. foreach (GridViewRow row in GridView1.Rows) { CheckBox ch = (CheckBox)row.FindControl("CheckBox1"); if (ch.Checked) { String ExamineeId ...

Datagrid in Compact Framework - format cell

I would like to format (cell background color for a whole row) a gridview in Compact Framework. It would not be something like alternating row style, but it would depend on some data the datasource has. So it's like ex.: one row out of total 4 rows for the dt. What is the simplest way? Do i need to override Paint() ? ...

C#: Datagrid to Excel .Cell border is missing in the created excel file

I am trying to create an excel file from datagrid in my asp.net page using the below code.I am able to create the excel file.But the created excel file does not has the cell borders.Without the cell borders,it looks like a word document. My code is Response.Clear(); Response.Buffer = true; Response.ContentType...

How to create a simple editable dataGrid in Silverlight

I want to bind an 'ObservableCollection' to a Silverlight dataGrid and allow the contents to be editable. I've got the following XAML, which allows the editing in the UI, but once I click off the row it changes back to the original. I'm obviously missing something, any ideas? <sdk:DataGrid AutoGenerateColumns="False" ...

Is it Possible to Nest Collections within Collections using Wpf DataGrid?

I want a simple sample program that nests collections within collections using Wpf DataGrid. ...

remove header separators lines in flash DataGrid (actionscript 2)

Hi, I have a DataGrid component in flash (actionscript 2). I want to remove the separators lines in the header of the grid- searched for hours with no luck. thanks. ...

How to Uncheck Radio button in Wpd DataGrid Coloumn

hello i have a problem i m using Wpf datagrid my one Column i s radio button(item template column) Coloumn when i m select another Row Radio Button my First One IS Still Check And i want it is to be uncheck How can i Achive it thanks if there is Multiple row in A grid i want to select only one ...

Problem About HTML Code Created By Javascript Code

I have a javascript function which get datagrid's header into THEAD tags. This code triggered on body onload event and run correctly. However, when i look to view source, i can't see these dynamicly generated codes. I want to see it there. How can I do it? function AddTHEAD(tableName) { var table = document.getElementById(tableName...

Handling Checked differently depending on whether it's called from a mouse click or virtualization

I've got a WPF toolkit datagrid with virtualization turned on. Each row has a check box bound to a bool in the underlying model. The check boxes (in addition to the data binding) also have Checked and Unchecked handlers (!) to allow checking multiple items at once if you've click one with multiple lines selected. Here's the xaml: <Con...

how can i get the radio button inside a Wpf item template column

hello Expert i hv a problem i m using Wpf Grid there is one itemtemplate column(radio button) my grid first row bind always with my form load event but the radio button is not selected..i want bind the row with radio button selcted how can i achive it ...

WPF Datagrid: Rowfilter for Lists/Collections

I recently migrated all my Datatables to List(Of), and bind it using .ItemSource. This works perfectly, but I run into a problem. Previously, I could filter the rows with SQL-like statements like this: Dim dk As DataView dk = DataGrid1.ItemsSource dk.RowFilter = "ID > 10" Now that I am using List(Of), i cannot use the rowfilter proper...

Multithreading with the WPF DataGrid?

I currently have a WPF DataGrid binded to a DataSet via the DataGrid's ItemsSource property in my program. With my current setup, I am having load-time issues that cause the GUI to lock up. Is it possible to multithread the loading of the DataGrid so that it will populate the rows as they are loaded instead of loading all the rows and th...

WPF DataGrid binding not working

Hi, I cannot get DataGrid binding to work in the example bellow. Any clues on what's going on ? namespace WPFTestApplication { /// <summary> /// Interaction logic for Window1.xaml /// </summary> public partial class Window1 : Window { public class Person { public int age { get; set; } ...

WPF Datagrid update from background thread

I have a WPF Datagrid with the .ItemSource set to a Datatable. In a background thread, a new Datatable is generated, and needs to be added to the binded Datatable. When i do CurrentTable.Merge(NewTable) from the UI thread, the whole UI freezes for a couple of seconds (since there are so many rows to be added). When I do CurrentTable.Me...

Best Way To Span Multiple Columns in WPF Grid/List?

I have a custom user control I wrote in WPF to display some data. I want to show this usercontrol in a list, but I also want to provide multiple column headers (matching some properties on the user cotrol) so users can sort on properties contained in the usercontrol. I am not sure the best way to go about this. I currently have a Lis...

How to make WPF DataGrid scrollbar look like WinForm DataGridView?

I'm trying to migrate to WPF and evaluating the DataGrid. First, I tried to make the DataGrid look and feel similar to the old DataGridView. The problem is that the scrollbars in DataGrid only cover the scrollable area. That means, the column and row header areas are shown in background color, which looks ugly to me. How can I make the s...

How to handle a custom event in a XtraGrid control

I am trying to solve a problem with a DevExpress XtraGrid in a winforms app. I have created a custom RepositoryItemButtonEdit control and have one unbound column in a XtraGrid that uses it. This control is a custom search field which throws an event when it has completed a search. What I am trying to do is add an event handler to the ce...

Check if an event already exists

Hi guys, I have a data grid loading row event _gridObj.LoadingRow += new EventHandler<DataGridRowEventArgs>(_gridObj_LoadingRow); and in the handler I am creating another event. In the following code how can I know if the MouseLeftBtn event already exists for that row? void _gridObj_LoadingRow(object sender, DataGridRowEventArgs e) ...

How to add datagrid column name in Adobe Flex

Hi, I have defined the datagrid as follows <mx:DataGrid id="dg" width="100%" height="100%" > In the part i am trying to get the details from the database and setting the dataProvider for the DataGrid as follows. var arrayContent:ArrayCollection = new ArrayCollection(); for(var i:int=0;i<assetClassDetails.length;i...

Binding to nested Property of Custom Object

I want to bind a column of my DataGrid to a nested property. I have defined these two classes: public class ViewObj { public cCar car { get; set; } public string name { get; set; } } public class cCar { public int ps { get; set; } public int wheels { get; set; } } The class cCar is a property of the class ViewObj. ...