PC Review


Reply
Thread Tools Rate Thread

DataGrid Question

 
 
Hotwheels
Guest
Posts: n/a
 
      23rd Sep 2009
I have a data grid that is only being used for presenting data no editing.
I cannot get the blue cell highlight to disappear from the upper left corner
cell.

Can I do it?

I het set these properties in C# VS 2005 2.0 .net.

dataGridView1.ColumnCount = 2;
dataGridView1.ColumnHeadersVisible = false;
dataGridView1.AutoSizeColumnsMode =
DataGridViewAutoSizeColumnsMode.AllCells;
dataGridView1.AutoResizeColumn(1);
dataGridView1.RowHeadersVisible = false;
dataGridView1.AllowUserToAddRows = false;

Mike


 
Reply With Quote
 
 
 
 
Sreenivas
Guest
Posts: n/a
 
      24th Sep 2009
On Sep 23, 9:13*pm, Hotwheels <Hotwhe...@discussions.microsoft.com>
wrote:
> I have a data grid that is only being used for presenting data no editing..

I hope you are using Gridview control though you said DataGrid .Yeah ,
it's obesolate.
Why are you using Gridview ? go for light weight controls like
Repeater or Datalist since your purpose is to
just displaying data .
> I cannot get the blue cell highlight to disappear from the upper left corner
> cell.
>
> Can I do it?
>
> I het set these properties in C# VS 2005 2.0 .net.
>
> * * * * * * dataGridView1.ColumnCount = 2;
> * * * * * * dataGridView1.ColumnHeadersVisible = false;
> * * * * * * dataGridView1.AutoSizeColumnsMode =
> DataGridViewAutoSizeColumnsMode.AllCells;
> * * * * * * dataGridView1.AutoResizeColumn(1);
> * * * * * * dataGridView1.RowHeadersVisible = false;
> * * * * * * dataGridView1.AllowUserToAddRows = false;
>
> Mike.



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
datagrid question =?Utf-8?B?cm9kY2hhcg==?= Microsoft ASP .NET 3 27th Jun 2005 11:29 PM
DataGrid Question =?Utf-8?B?UnlhbiBTbWl0aA==?= Microsoft ASP .NET 2 19th May 2005 03:29 PM
Some DataGrid question Arsalan Microsoft ASP .NET 5 8th Mar 2005 06:22 AM
Datagrid Question William Gower Microsoft Dot NET 2 23rd Apr 2004 08:27 AM
DataGrid question Vadym Stetsyak Microsoft Dot NET Framework Forms 2 1st Aug 2003 06:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:06 AM.