public override BaseEdit CreateEditor()
        {
            DropdownEdit dropdownEdit = base.CreateEditor() as DropdownEdit;

            dropdownEdit.Properties = this;

            return(dropdownEdit);
        }
        /// <summary>
        /// 触发行选择变更事件
        /// </summary>
        private void RaiseSelectedRowChanged()
        {
            DropdownEdit editor = OwnerEdit as DropdownEdit;

            if (editor != null)
            {
                DataRow row = DataView[GridView.FocusedRowHandle].Row;
                editor.OnSelectedRowChanged(row);
            }
        }
Beispiel #3
0
        private void dropdownEdit1_SelectedRowChange(object sender, DropdownEdit.SelectedRowChangeEventArg e)
        {
            StringBuilder returnValue = new StringBuilder();

            var table = e.SelectedRow.Table;
            foreach (DataColumn column in table.Columns)
            {
                returnValue.AppendFormat("{0}: {1}\r\n",
                                         column.ColumnName,
                                         e.SelectedRow[column.ColumnName].ToString());
            }
            txtSelectedValue.Text = returnValue.ToString();
        }