GridView in ASP.NET

Please support our ASP.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2009
Posts: 17
Reputation: Anupama G is an unknown quantity at this point 
Solved Threads: 0
Anupama G Anupama G is offline Offline
Newbie Poster

GridView in ASP.NET

 
0
  #1
Oct 16th, 2009
Hi,

How do I change the Row height of the GridView?

Can anyone help me out in this.

Thanks.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 23
Reputation: Wiizl is an unknown quantity at this point 
Solved Threads: 0
Wiizl Wiizl is offline Offline
Newbie Poster
 
0
  #2
Oct 16th, 2009
  1. GridView1.Rows[0].Height = Unit.Pixel(40);
or
  1. foreach(GridViewRow r in GridView1.Rows)
  2. {
  3. r.Height=Unit.Pixel(...);
  4. }
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 40
Reputation: guru_sarkar is an unknown quantity at this point 
Solved Threads: 6
guru_sarkar guru_sarkar is offline Offline
Light Poster
 
0
  #3
Oct 16th, 2009
or you can do that in markup...
check in GV Properties Window for RowStyle-> Set the Height

your GV markup will look something like below:
 <asp:GridView ID="GridView2" runat="server" ..>
 <RowStyle Height="30px" />
        <Columns>
        ...your columns
</Columns>
        </asp:GridView>
Reply With Quote Quick reply to this message  
Reply

Message:



Similar Threads
Other Threads in the ASP.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC