BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void gridDataBoundGrid1_CurrentCellShowingDropDown(object sender, GridCurrentCellShowingDropDownEventArgs e) { GridCurrentCell cc = this.gridDataBoundGrid.CurrentCell; if(cc.ColIndex == 2 && cc.RowIndex == 1) { GridComboBoxCellRenderer cr = cc.Renderer as GridComboBoxCellRenderer; if(cr != null) { DataTable dt = new DataTable("YesNo"); dt.Columns.Add(new DataColumn("id", typeof(int))); dt.Columns.Add(new DataColumn("display"); DataRow dr =dt.NewRow(); dr[0] = 1; dr[1] = "Yes"; dt.Rows.Add(dr); dr =dt.NewRow(); dr[0] = 0; dr[1] = "No"; dt.Rows.Add(dr); ((GridComboBoxListBoxPart)cr.ListBoxPart).DataSource = dv; ((GridComboBoxListBoxPart)cr.ListBoxPart).DisplayMember = "display"; ((GridComboBoxListBoxPart)cr.ListBoxPart).ValueMember = "id"; } } }