标签:winform label datagridview 对齐
实现Label与DataGridView对齐有两种方法,差别不大:
定义:
Label名称:lblName
DataGridView名称:dgvData
第一种:
lblName.Location = new Point(dgvData.Location.X + dgvData.Width - lblName.Width, lblName.Location.Y);
第二种:
lblName.Location = new System.Drawing.Point(dgvData.Location.X + dgvData.Width - lblName.Width, lblName.Location.Y);winform Label与DataGridView右对齐,布布扣,bubuko.com
标签:winform label datagridview 对齐
原文地址:http://blog.csdn.net/u013816709/article/details/26283157