if (e.TableControl.CurrentCell.ColIndex == durIdx)
{
string frequencyId = this.gridGroupingControl1.Table.CurrentRecord.GetValue("Value_Value").ToString();
DataTable table = GetParentTable();
table.DefaultView.RowFilter = string.Format("[Value] = ''{0}''", frequencyId);
string Id = table.DefaultView[0]["Key"].ToString() ;
GridDropDownGridListControlCellRenderer cr = (GridDropDownGridListControlCellRenderer)e.TableControl.CurrentCell.Renderer;
if(cr !=null)
{
GridGroupTypedListRecordsCollection tt = (GridGroupTypedListRecordsCollection) cr.ListControlPart.DataSource;
tt.TableDescriptor.ResetRecordFilters();
if (tt.TableDescriptor.RecordFilters.Count == 0)
{
FilterCondition fc = new FilterCondition(FilterCompareOperator.Equals,Id );
RecordFilterDescriptor rfd = new RecordFilterDescriptor("Code",fc);
tt.TableDescriptor.RecordFilters.Add(rfd);
}
}
}
Here is a sample for implementing it.
combobox.zip
Regards,
Haneef