Windows Vista Forums

DataGrid Question

  1. #1


    Hotwheels Guest

    DataGrid Question

    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



      My System SpecsSystem Spec

  2. #2


    Sreenivas Guest

    Re: DataGrid Question

    On Sep 23, 9:13*pm, Hotwheels <Hotwhe...@newsgroup>
    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.


      My System SpecsSystem Spec

DataGrid Question

Similar Threads
Thread Forum
Verb Counts - WPF DataGrid
Well with PowerShell 2's RTM perhaps more usage of PowerShell 2's BareFootin' WPF programming to automate graphics: WPFToolkitBinaries - Bing...
PowerShell
Simple Datagrid question
Simple perhaps to you - but not to me. :-) Here is a quick question I just cant seem to find a solution for. (im using vb.net but i dont think...
.NET General
VB :Export datagrid to excel
Hi, I want to export a datagrid to excel, but allways occur errrors as below '************ Error 2 Type...
.NET General
DataGrid Question
I am using VB .Net 2003. I am really struggling to understand how to display a table (datagrid) in a web app. Let me explain what I want to do...
.NET General
ANN: Free Datagrid for WPF released
Hi, Xceed has just released a completely free datagrid control for Windows Presentation Foundation. (not a lite version or trial or anything like...
Avalon
Data binding with DataGrid
Hi, Can you please guide me for data binding with datagrid? or any other databinding sample with SQL or ADO will help for me. Thanks,
Avalon
DataGrid sample in WinFX SDK?
What happened to the sample of the WPF Datagrid that was on the MSDN WinFX site? I downloaded each individual file last week (I started directly...
Avalon