Devexprerss GridControl Datetime Column AutoFilter - silverlight

I want to customize autofilter row
I create template for autofilter row and set gridColumn AutofilterRowEdiTtemplate to my template
Its works for general column but for datetime column always show dateedit in Autorowfilter
i dont want dateedit to be shown on autofilter
what should i do?
tanx

Check ColumnBase.ColumnFilterMode Property, you can customize your filter mode for specific column.
This is WPF grid Reference, but silverlight grid also have such properties. check Filter Modes and Custom Filtering..
Code snippet for reference:
foreach (GridColumn column in grvAvailableCompnents.Columns)
{
column.OptionsFilter.FilterPopupMode = FilterPopupMode.CheckedList;
column.OptionsFilter.AutoFilterCondition = AutoFilterCondition.Contains;
}
Reference:
GridControl.CustomRowFilter Event

Related

changing the DisplayMember of Syncfusion ComboBoxAutoComplete

I am working with Syncfusion tools, and am trying to add a ComboBoxAutoComplete control to a Windows form. I have a DataTable that I'm using as my DataSource with two columns: ID and Name. I set the DataSource, DisplayMember, and ValueMember properties like so:
ComboBox1.AutoCompleteControl.DataSource = table
ComboBox1.DisplayMember = "Name"
ComboBox1.ValueMember = "ID"
The control loads correctly, but it appears that the DisplayMember does not get applied. The control will display only the ID of the selected item. When I expand the drop-down, it displays the entire table (both columns). I tried setting the DisplayMember and ValueMember directly on the AutoCompleteControl, but those properties do not exist. Is there a different property that is used to control what text is displayed in the ComboBoxAutoComplete control?
We have prepared the simple sample in which we have assigned data table to "DataSource" property of AutoCompleteControl inside the ComboBoxAutoComplete to enable the AutoComplete features.
To display the value based on DisplayMember assigned the Data table columns to “Columns” (collection property) of AutoCompleteControl and set “MatchingColumn” value as True for which column has been set in DisplayMember.
Please check with the sample from below location.
Sample: ComboBoxAutoComplete_Sample
Regards,
Keerthana J

Devexpress checkbox column in a gridcontrol c#

I have a datagrid from devexpress in a winform application.I populated the datagrid from code (datasource=my datatable with 2 strings columns and one of type int (receive 0 and 1 values-should be checkbox on form).
I added a datagrid and from designer I added 3 columns.The last one of type checkbox.I set
UnboundType=Integer,
UnboundExpression=my column name from datatable :
DisplayFormat = Numeric,
columnedit = checkbox,
Displaycheckedvalue = 1,
displayuncheckedvalue = 0.
When I run the application always my checkboxes are blue.If i press one checkbox appear a check but when i go to the next row the previous value is again blue.What should i do so why the application keep the checks?
Don't set the column to be unbound, it is in your datasource after all.
What you want to do is just to set Displaycheckedvalue and displayuncheckedvalue as you have done, nothing more.
You can make a class which got a property for each column of your table. The int value would be a bool and so you can use List as datasource. The Grid will automaticly add checkboxes for the bool value.
If you want to use DataTable see Stig's post but in my opinion it is more beautiful to use classes and List.

How to dehighlight the row when checkbox is checked in extjs grid

I am using extjs4.1 grid in aspnet mvc3 application.
I have used checkboxrowselection model.
the issue is :
once the checkbox is checked,the row should not get highlighted in the extjs grid.
How can i acheive this.
please help
The purpose of the checkbox selection model is to select rows. In extjs, selecting a row means to specifically highlight it, what you want is just a logical selection. You should be using the user extension: Ext.ux.CheckColumn that ships with the core library.
To gather the rows, you would need to do a query on the store where the models property is set to true for the data index you define on the checkcolumn.

How to select a row, if i click a disabled cell in a wpf datagrid

I have a wpf dynamic datagrid with a column disabled. if i click a cell in that column, the row is not selected.
The following article shows how to detect the row and column of a DataGrid click:
http://www.scottlogic.co.uk/blog/colin/2008/12/wpf-datagrid-detecting-clicked-cell-and-row/
This will work for disabled columns also.
You can adapt this code so that when the row is found, you set its IsSelected property to true.

Add an image in ComponentOne C1DataGrid column

How to add an image in one grid column based on a condition (image will change depends on data in the grid column) in c1datagrid
I'm using autogenerate columns, biding grid with c1.data
I found it in one of the C1 demo project.

Resources