Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
4883 | Jun 6,2003 07:03 AM UTC | Jun 6,2003 07:48 AM UTC | WinForms | 1 |
![]() |
Tags: GridControl |
private void grid_CurrentCellClosedDropDown(object sender, Syncfusion.Windows.Forms.PopupClosedEventArgs e) { GridCurrentCell cc = this.gridControl1.CurrentCell; GridDropDownGridListControlCellRenderer cr = cc.Renderer as GridDropDownGridListControlCellRenderer; if(cr != null) { USState state = (USState)cr.ListControlPart.SelectedItem; Console.WriteLine(state.LongName); } }Once you have the values (from the DataRowView.Row member), you would then put them directly into the gridTable by the Current datarowview in this table through its CurrencyManager.
CurrencyManager cm = (CurrencyManager)this.BindingContext[dataGrid1.DataSource, dataGrid1.DataMember]; DataRowView drv = (DataRowView) cm.Current; DataRow dr = drv.Row; //set the values into dr
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.