// ***********************************************************************
// Assembly : HZH_Controls
// Created : 08-28-2019
//
// ***********************************************************************
//
// Copyright by Huang Zhenghui(黄正辉) All, QQ group:568015492 QQ:623128629 Email:623128629@qq.com
//
//
// Blog: https://www.cnblogs.com/bfyx
// GitHub:https://github.com/kwwwvagaa/NetWinformControl
// gitee:https://gitee.com/kwwwvagaa/net_winform_custom_control.git
//
// If you use this code, please keep this note.
// ***********************************************************************
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using HZH_Controls.Controls;
namespace HZH_Controls.Controls
{
///
/// Class UCComboxGrid.
/// Implements the
///
///
public partial class UCComboxGrid : UCCombox
{
///
/// The m row type
///
private Type m_rowType = typeof(UCDataGridViewRow);
///
/// 表格行类型
///
/// The type of the grid row.
[Description("表格行类型"), Category("自定义")]
public Type GridRowType
{
get { return m_rowType; }
set
{
m_rowType = value;
}
}
///
/// The int width
///
int intWidth = 0;
///
/// The m columns
///
private List m_columns = null;
///
/// 表格列
///
/// The grid columns.
[Description("表格列"), Category("自定义")]
public List GridColumns
{
get { return m_columns; }
set
{
m_columns = value;
if (value != null)
intWidth = value.Sum(p => p.WidthType == SizeType.Absolute ? p.Width : (p.Width < 80 ? 80 : p.Width));
}
}
///
/// The m data source
///
private List