Browse by Tags
» Columns (RSS)
I am very new to WPF/Xceed and have a very basic question. :)
I am using DataGrid Control in my application to display a collection of objects. I want one column of my grid to be editable depending upon the type of Object. If Object is of type A, the column should be editable and if object of type B, then it should not be. ...
I am using Model View ViewModel pattern. I have a button inside a DataCell of Xceed DataGrid. I want to use DelegateCommand to handle the click event of the button.
Also, I dont want to write anything for the same in my Code Behind. I want everything to reside in my ViewModel.
How can this be achieved. I thought of RoutedEvents / ...
I am binding the DataGridControl from code behind using datagridcollectionview.....Suppose my datatable contains 5 columns . Now in the xceed grid i want to display the values of 1st and 3rd column in the same header i.e. in one column . How can i achieve this ?????
Before I dig the things myself, I thought if somebody had already done this thing!
What all I want is to have Fields as Row and records as columns in the grid. So whenever a new record is to be added into the grid a new column is added intead of a new row.
Hope I made myself clear.
Thanks in advance
I have a UserControl I developed which has a(n?) Xceed DataGridControl in it. Is there a way to expose the Columns collection so that a person using my UserControl can specify the columns for the DataGridControl?
Is it possible to have different backgroundcolors for different columns in a datagrid. This should not depend on the value in the cell.
ex. if i have a grid with white as a general backgroundcolor and i need to set entire column 2 to red and entire column 5 to green
Appreciate your feedback on this.