Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
2633 | Feb 6,2003 10:32 AM UTC | Feb 7,2003 04:20 AM UTC | WinForms | 2 |
![]() |
Tags: GridControl |
private void gridDataBoundGrid1_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid1.CurrentCell; //create or get the table somehow table = new DataTable(); ..... //make dropdown list use this new table.... ListBox listBox = ((GridComboBoxCellRenderer)cc.Renderer).ListBoxPart; listBox.DataSource = null; listBox.DisplayMember = "Item"; listBox.ValueMember = "ItemID"; listBox.DataSource = restrictedForeignTable; listBox.BindingContext = this.BindingContext; }
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.