stupid questions re: DatagridView

  • Thread starter Thread starter Bill Nguyen
  • Start date Start date
B

Bill Nguyen

1. Where to put the header/banner/caption text for a Datagridview? I want to
label the DGV "my 2nd DGV"

2. How do I set alternate row background color? I want light gray and
yellow-green alternately.

Thanks

Bill
 
Hello:
1. Where to put the header/banner/caption text for a Datagridview? I want to
label the DGV "my 2nd DGV"

urDatagrid. CaptionText = "my 2nd DGV"

2. How do I set alternate row background color? I want light gray and
yellow-green alternately.

urDatagrid.AlternatingBackColor = System.Drawing.Color.LightGray
urDatagrid.BackColor = System.Drawing.Color.YellowGreen

Hope it helps.
 
Hello;

I'm talking about DatagridView, not Datagrid. Those properties not found in
DatagridView.

Thanks for your help anyway :-)

Bill
 
Scott;

I can't even see the title bar of the DGV! Your syntax only change the name
at runtime, I think.

Thanks
Bill
 
Back
Top