var dicRelateData1 = new Dictionary<string, string>(); var dicRelateData2 = new Dictionary<string, string>(); dicRelateData1.Add("Menu_ID","Menu_ID");//表格一和表格二之间的主外键关系 dicRelateData2.Add("Menu_Name2","Menu_Name2");//表格二和表格三之间的主外键关系 masterDetail = new MasterControl(GetDataSource(), GetDataSource2(), GetDataSource3(), dicRelateData1, dicRelateData2, controlType.outside); #endregion panelView.Controls.Add(masterDetail);
昨天应领导要求,折叠控件增加了折叠线的效果,看起来有没有更加像模像样了。~~~
其实就在行重绘事件private void MasterControl_RowPostPaint(object obj_sender, DataGridViewRowPostPaintEventArgs e)里面增加了如下代码: