Hi, i have a wpf datagrid,
heres my datagrid
<dg:DataGrid x:Name="dataGrid" AutoGenerateColumns="false"
ColumnHeaderStyle="{StaticResource columnHeaderStyle}"
AlternationCount="2" RowBackground="Beige"
RowStyle="{StaticResource rowStyle}"
AlternatingRowBackground="LightBlue"
...
Is there a way to make column of cells in a Silverlight datagrid be readonly in editmode with C# code instead of setting up a entire datagrid as a template in a resource file?
UPDATE
Found an example piece of code -
http://forums.silverlight.net/forums/p/17483/58189.aspx
In the response by slhungry midway into the thread. He has examp...
I want to split my dataGrid Rows , like we do in Html by using ...
this picture illustrate what i'm asking for
view the screenShot
I tried with the gridView and Xtemplate , i need help
...
I have a datagrid contains sensitive data, which is, only allows user to read, nothing more (no modifying, no copying,...). How can I archive that? Datagrid has Readonly property, but I think it does not prevent user from copying data.
EDIT: I don't need to prevent user completely from copying data, just not allow them to copy easily ma...
I have a data table. If I set the DataSource of a DataGrid to the data table it displays all of the data just fine. However if I use a lambda expression to filter out some of the data and then reassign the datasource it does not display anything. This is what I have tried...
var AllPeople =
from r in CompanyDataTable.AsEnumerable()...
Hi,
We are creating a business application (Silverlight 4) at our company where we, in several of our views, use the functionality to synchronize two lists of some kind.
More precise we are, at the moment, using two list boxes (one source and one target) and two buttons (one add and one remove). Both the source list and the target list...
I am looking for a sample code/Article which would demonstrate WPF DataGrid in action with MVVM pattern to add, updated and delete record from database.
I have a specific requirement for allowing user to insert new record using DataGrid not a new child form.
If anyone can recommend good resource or provide a sample for that particular ...
In a standanlone WPF app I got a DataGrid to enter some values. For text values this works nicely just like this:
<DataGrid AutoGenerateColumns="False" ItemsSource="{Binding MyCollection}">
<DataGrid.Columns>
<DataGridTextColumn Header="Name" Binding="{Binding Name}"/>
<DataGridTextColumn Header="Description" Binding="{Binding...
Hi,
i cant find a way to horizontal alignment of the data grid rows, although it has a vertical alignment parameter.
...
I was wondering if anyone had an easy way to get the text in a WPF data grid to be center aligned. I got the data grid to work just fine, but the right text alignment bothered me. I goggled some, and downloaded the wpftoolkit, but the examples either do not work, or give me a compile error. I did add the reference to the wpftoolkit to my...
Using ASP.NET Web Forms.
I am databinding a DataView to a DataGrid with AutoGenerateColumns set to true.
The final column of the DataView is not rendering.
Using the debugger I can see that the column definitely exists in the data grid's datasource.
The column is of type decimal and some of the rows in the column have data in them.
T...
I have a property called Raised_Time, this property shows the time at which alarm is raised in datagrid Cell. I don't want to show anything in the datagrid cell when user creates any alarm, it just display the empty cell.
I googled in the internet and found that the default value of DateTime can be set using DateTime.MinValue and this w...
I've got a WPF DataGrid and wish to apply a currency format to several of the columns. I can do this on a per-column basis using Binding={Binding FieldName, StringFormat={}{0:C}, but I'd prefer to define the currency format once - presumably in a <Style> resource - and just apply that resource to each column that needs formatting.
Probl...
Hi All
We have a Datagrid:
<nross:ScalableDataGrid id="grid"
dataProvider="{model.practiceJoinRequestThickList.practiceJoinRequestThicks}">
<nross:columns>
<ui:DataGridToolTipColumn headerText="ID" dataField="practiceJoinRequest.userId"/>
<ui:DataGridToolTipColumn headerText="Name" dataField="u...
Hi ,
wpf datagrid in which will bind to an observable collection of employee details.
Grid will loaded from another screen upon selection of employees by user.If user selecting employee A multiple times same record will loaded in to this grid.
But my problem is when i select employee A and then selecting the same employee A of another...
Hi all,
I have a datagrid and I want to display an item editor (text input) when the mouse is over the cells.
Thanks in advance.
...
What is the best way to get a row-by-row selection feel to a DataGrid in Silverlight rather than a selected row and an active cell? For my current application I just don't need the UI effect of an active cell.
...
I have a custom <mx:DataGrid /> that is updated with data from a ColdFusion server every 60 seconds. I've noticed that every time the DataGrid updates and redraws the scroll position is reset to the top.
Is there a way I can preserve the scroll position for my DataGrid?
Thanks in advance.
...
I have a data-bound DataGrid with alternating row background colors. I would like to color a cell differently based on the data it contains. I have tried the solution suggested by this thread
http://wpf.codeplex.com/Thread/View.aspx?ThreadId=51143
But,
DataGridCellsPresenter presenter = GetVisualChild(row)
always returns null.
I am...
I'm not sure why my code isn't doing the TextWrapping properly. It doesn't wrap the text for the Description column (which is what I want). It just cuts it off and it doesn't even use the "..." to let me know there is more data.
I tried to use this code I found online to do the job, but it didn't work. Ideally I'd love to be able to onl...