|132077||Aug 11,2017 05:17 PM UTC||Aug 21,2017 12:56 PM UTC||WinForms||9|
//To add the FilterCondition
FilterCondition condition = new FilterCondition((FilterCompareOperator.Like), "3");
RecordFilterDescriptor recordFilter = new RecordFilterDescriptor("CategoryID", condition);
// Add the RecordFilterDescriptor to the RecordFilters.
this.gridGroupingControl1.QueryCellStyleInfo += gridGroupingControl1_QueryCellStyleInfo;
void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
if (e.TableCellIdentity == null || e.TableCellIdentity.Column == null)
if (e.TableCellIdentity.Column.Name == "SampleData")
Element el = e.TableCellIdentity.DisplayElement;
if (el != null && el.Kind == DisplayElementKind.Record)
Record record = el.GetRecord();
//Get the first column cell value
String value = record.GetValue("CategoryID").ToString();
//Get the collection based on the first column value
List<CasCading> source = comboSource[value];
//Assign the collection for second column.
e.Style.DataSource = source;
e.Style.DisplayMember = "SData";
Thank you Mohanraj
but your sample does not work , no change appear in the grid....
Thank you Mohanraj
But this event is raised at infinity.... and is very slow is not Is not applicable
ther is some workaround ?
Hi Franco,Thanks for your update.In the provided sample of last update, we have set the data source for a ComboBox column based on the ValueMember of another ComboBox column. So, the records will not be filtered and changes will not be reflect in the grid. We are little bit unclear about your scenario. Can you please elaborate the scenario or provide any screenshot/video of your exact requirement so that we could provide you a better solution at the earliest?Regards,Arulpriya
Thank you for your support
We have 2 combo in gridgoruping control (refer to screenshoot in the first my post)
tthe first contain a Taxonomoy Main when this change during the edit the Taxonomy Sub (the second combo ) need to be filtered by the valuemember in the taxonomy main;
it's a cascading lookup like a product category (Taxonomoy Main) filter the product (Taxonomy sub)
Let me know if this sample is clear
Thank you again
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.