Use DataGridTemplateColumn and use Textblock/Textbox controls. Use converter to set forecolor of textbox as per the binded value to Text property
-Abhijeet B
Use DataGridTemplateColumn and use Textblock/Textbox controls. Use converter to set forecolor of textbox as per the binded value to Text property
-Abhijeet B
Hi, In my View I have a datagrid and a 'Undo' button. On 'Undo' I am showing a BusyIndicator. Suppose, 1) I try to add a new row in the datagrid 2) Datagrid row goes into the error state because of some validation failure 3) While datagrid is in edit mode, without loosing focus on the datagrid, I presses a shortcut 'Ctrl+Z' to Undo changes Following exception occurs:- System.Windows.Media.Animation.AnimationException: Cannot animate the 'IsEnabled' property on a 'System.Windows.Controls.ContentControl' using a 'System.Windows.Media.Animation.ObjectAnimationUsingKeyFrames'. For details see the inner exception. ---> System.InvalidOperationException: 'NewItemPlaceholderPosition' is not allowed during a transaction begun by 'AddNew'. Actually on DataGrid LostkeyboardFocus i explicitly CommitEdit and CommitNew for the datagrid. So, if I press the 'Undo' button with mouse everything works fine. But if I presses a shortcut while datagrid is in edit mode and focus is still in the datagrid, then the BusyIndicator, while setting status to BUSY, tries to change IsEnabled of the datagrid and the exception occurs. Please help me if anyone has a solution
Use DataGridTemplateColumn --> CellTemplate --> Image. If no image is loaded and with no error then it must be a binding issue.
Hi, I want to know if there is any event to know if the print button on the report viewer toolbar is clicked. I want to do some database updations only if the report is printed. The alternative is to not use the toolbar button and do the printing on some button click on the form. But i dont want to do that. Please reply if anyone know anything abt this. -Abhijeet :confused:
Hi, I want to know if there is any event to know if the print button on the report viewer toolbar is clicked. I want to do some database updations only if the report is printed. The alternative is to not use the toolbar button and do the printing on some button click on the form. But i dont want to do that. Please reply if anyone know anything abt this. -Abhijeet :confused: