Willkommen bei dotnet-snippets.de! Snippet hinzufügen Login Registrieren
Snippets in der Datenbank: 1562 | Anzahl registrierter User: 1893 | Besucher online: 321
Hauptmenü
Home
Top Ten
Zufälliger Snippet
FAQs
.NET Community
dotnet-forum.de
dotnet-kicks.de
Social

RSS Feeds
Rss Alle Snippets
Rss C#
Rss VB.NET
Rss C++
Rss ASP.NET
Partner
Member of Microsoft Community Leader/Insider Program (CLIP)

Set GridView Column Width


Autor: Rene Koch
Sprache: ASP.net
Bewertung:
3.82 (4 votes)
Anzahl der Aufrufe: 9438
  
Kick it on dotnet-kicks.de  

Beschreibung:

How to set the width-property by a GridView

Abgelegt unter: Asp, GridView, Column, Width, Problem.



ASP.NET
1
2
3
4
5
6
7
//Hi, the problem many people with asp.net have, is how to set the width-property in a GridView. 
//It´s easy: In the Load-method

    protected void GridView1_Load(object sender, EventArgs e)
    {
        GridView1.Width = new Unit("100%"); 
    }
Sie haben Fragen zu diesem Snippet oder brauchen Hilfe bei der .NET Entwicklung?
Freundliche und kompetente Entwickler helfen Ihnen gern weiter im Forum für .NET Entwicklung.



Kommentare:
(Zum Schreiben von Kommentaren bitte anmelden.)



schlecht sehr gut
1 2 3 4 5 6 7 8 9 10
Nur angemeldete User können Snippets bewerten.