We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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]); }

Live Chat Icon For mobile
Up arrow icon