Is there a way to edit a silverlight 3 DataGrid by row and not by cell?
I would like a way to turn off the cell editing functionality and set the whole row in edit state (that should also display the CellEditingTemplate templates).
You can make use of RowDetailsTemplate for this.
You can have your customized UI for row editing in this RowDetailsTemplate.
Answering my own question i can say that this functionality is not supported for silverlight 3.
Not sure if this is implemented for later versions though.
Related
i have a devexpress gridcontrol ,which displays the data from the sql database.
By default,the table in gridcontrol is coming in a column fashion,
Whereas i need to convert column header as row header, where the column data will be presented as row data.
I have seen a lot of forums and blogs but didn't found any helpful material which helps my condition,
Kindly suggest me the way to do it ...
Devex has a vertical grid that does exactly that but sadly it is not available for WPF but only for WinForms.
This link shows an example of how to show a grid that will resemble the WinForms VerticalGrid control.
This link is to a question on the Devex site that sounds similar to yours. Maybe you'll find an answer there.
Hope that helps :)
Hey i am dealing with winform(c#) application. i am using Devexpress Grid Control.
Is it possible to have two or more repository controls in grid control column for edit purpose.
eg.. say like a textbox and combo box in a grid column.(this is possible in web application by adding item templates to the grid column)
Is this possible or any other way to get this done?
You can set the GridColumn.ColumnEdit property to specifying the editor used to edit a column's value
I have a datagrid and when user tries to edit a row then I want to have only that row editable and all other rows disabled. Is this possible ? I tried looking for datagrid.rows but there is none.
Please help
Thanks
Sai
Take a look at the BeginEdit and EndEdit events here. If the default behavior isn't preventing you from editing the other rows while you are currently editing one you should be able to place some code in those events to disable selecting other rows while in edit mode.
I have been looking around and even found a couple of related answers and didn't get a certain answer to my question.
Is there a way to have in the WPF ListView an additional row like in a DataGrid?
I prefer using the ListView since I use 3.5 and the DataGrid is not officially in the box and has many quirks.
I would prefer using the ListView if there is an official option to add new rows or else I use the DataGrid.
Thanks a lot.
I would use the DataGrid. That functionality already exists so there's no need to reinvent the wheel... besides you can make the DataGrid function exactly the way the ListView does if you have the burning desire to do so. Usually in my apps, I use a DataGrid that is by default read-only, then I provide a button to the user to allow them to modify the contents of the DataGrid (set the read-only property to false). I also restyle the DataGrid because I think it looks ugly out of the box... especially on XP machines.
On a side note, last week I installed a fresh copy of VS 2008 SP1 on a new PC and it came with the WPF Toolkit already loaded (which includes the DataGrid, DatePicker, etc.). So you might want to check it out.
For example, dragging a row from a datagrid table to another datagrid table?
However the other datagrid table just present the row, it manipulates the data gathered and present it in its own way.
I am using wpf toolkit. Can show me a sample example on this?
Here is a good place to start. Although the tutorial is shown for ListBox, it can also be adapted for DataGrid (although I have not tried it for myself).