你要得是这种么??刚刚在另一个帖子里看到的。using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Drawing.Imaging; 
using System.Runtime.InteropServices; namespace DataGridTest
{
/// <summary>
/// Form1 的摘要说明。
/// </summary>
public class Form1 : System.Windows.Forms.Form
{
[ DllImport("user32") ] 
public static extern System.IntPtr GetDC(System.IntPtr dc); 
System.Drawing.Graphics g; //画图板 
Pen p=new Pen(Color.Black,1); //画笔 
int startx,starty,wx,wy,step; //startx,starty,wx,wy确定一个矩形 
int cx,cy; /// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null; public Form1()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent(); //
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
sqlDataAdapter1.Fill(ds1, "aa");
dataGrid1.SetDataBinding(ds1, "aa");
dataGrid1.SelectionBackColor = Color.Red;
this.Visible=false; 
step=1; 
g=Graphics.FromHdc(GetDC(System.IntPtr.Zero)); 
cx=this.ClientSize.Width;
cy=this.ClientSize.Height; 
this.Visible=false; 
step=1; 
while(step<=cx/2) 

startx=cx/2-step; 
starty=cy*startx/cx; 
wx=2*step; 
wy=wx*cy/cx; 
startx+=this.Left; 
starty+=this.Top+this.Height-this.ClientSize.Height; 
g.DrawRectangle(p,startx,starty,wx,wy); 
System.Threading.Thread.Sleep(100); 
step+=10; 

this.Visible=true;  } /// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if (components != null) 
{
components.Dispose();
}
}
base.Dispose( disposing );
} #region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
// 
// Form1
// 
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(512, 421);
this.Name = "Form1";
this.Text = "Form1"; }
#endregion /// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main() 
{
Application.Run(new Form1());
}
}
}