摘要: //////设置DataGrid所有行的行高//////DataGrid对象///行高publicvoidSetGridDefaultRowHeight(DataGriddg,intcy){FieldInfofi=dg.GetType().GetField("m_cyRow",BindingFlag... 阅读全文
posted @ 2012-09-13 15:05 飛雲若雪 阅读(2265) 评论(1) 推荐(1) 编辑
摘要: 利用DataGrid的MouseDown和MouseMove事件,模拟滑动浏览的效果intx=0,y=0;privatevoiddataGrid_MouseDown(objectsender,MouseEventArgse){x=e.X;y=e.Y;}privatevoiddataGrid_Mous... 阅读全文
posted @ 2012-09-13 14:57 飛雲若雪 阅读(503) 评论(0) 推荐(0) 编辑