retrieving value of hidden gridlistcontrol column

Hi, How do I retrieve the value of a hidden gridlistcontrol type of column after the use makes a selection from the list? I want to filter two other columns in the grid based on this value. Thanks, CB

1 Reply

AD Administrator Syncfusion Team February 9, 2004 09:46 PM UTC

You can get the DataRowView object that is the SelectedItem in the CurrentCellCloseDropDown event (if your GridListControl''s DataSource is a DataTable). private void gridControl1_CurrentCellCloseDropDown(object sender, Syncfusion.Windows.Forms.PopupClosedEventArgs e) { GridCurrentCell cc = this.gridControl1.CurrentCell; GridDropDownGridListControlCellRenderer cr = cc.Renderer as GridDropDownGridListControlCellRenderer; DataRowView drv = ((GridDropDownGridListControlPart)cr.ListControlPart).SelectedItem as DataRowView; Console.WriteLine(drv[0]); }

Loader.
Up arrow icon