Click here to Skip to main content
15,899,754 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionPrint a web report Pin
Sajjad Razmi6-Dec-08 19:46
Sajjad Razmi6-Dec-08 19:46 
AnswerRe: Print a web report Pin
Christian Graus7-Dec-08 10:04
protectorChristian Graus7-Dec-08 10:04 
QuestionFind Method Name Pin
Tarik Guney6-Dec-08 17:09
Tarik Guney6-Dec-08 17:09 
AnswerRe: Find Method Name Pin
Nishant Singh6-Dec-08 20:44
Nishant Singh6-Dec-08 20:44 
AnswerRe: Find Method Name Pin
Abhijit Jana7-Dec-08 0:41
professionalAbhijit Jana7-Dec-08 0:41 
GeneralRe: Find Method Name Pin
Member 57600747-Dec-08 7:53
Member 57600747-Dec-08 7:53 
GeneralRe: Find Method Name Pin
Tarik Guney7-Dec-08 7:55
Tarik Guney7-Dec-08 7:55 
QuestionGridView height to 100% Pin
Stevo Z6-Dec-08 5:37
Stevo Z6-Dec-08 5:37 
Hi guys,

I have following problem:
I want to display two GridViews A, B one next to the other. So I've created a simple table with one row and two columns a put griview A into the left column and the GridView B into to right column:

<table>
   <tr>
       <td>
         A                  
       </td>
       <td>
         B                 
       </td>                      
  </tr>
</table>


I know that after items are loaded, the A will always be higher than B, so I would like to stretch B so it takes same amount of height as A. I've set the Height property on B to 100%:

<asp:GridView ID="B" runat="server" AutoGenerateColumns="False" Height="100%">
 ...                            
 </asp:GridView>


But the B keeps the minimum height it requires to render all rows and won't stretch to same size as A. Note that A and B are in cells of the same row, so B has available height to strech to.
After some investigation I've discovered that by default, a GridView is a <table> encapsulated within a <div>. And its the div that prevents the table to stretch above its minimum required height. Is there a way how to tell ASP.NET to NOT render the (empty) <div> html tag around the table? Or change the behaviour of the <div> to not prevent table to be stretched to any available size?

zilo

QuestionFind Child Gridview Pin
kavitha_blueindia6-Dec-08 1:43
kavitha_blueindia6-Dec-08 1:43 
AnswerRe: Find Child Gridview Pin
Nishant Singh6-Dec-08 20:40
Nishant Singh6-Dec-08 20:40 
AnswerRe: Find Child Gridview Pin
Abhijit Jana6-Dec-08 20:53
professionalAbhijit Jana6-Dec-08 20:53 
QuestionUse doPostBack Pin
John.G6-Dec-08 0:02
John.G6-Dec-08 0:02 
AnswerRe: Use doPostBack Pin
Christian Graus7-Dec-08 10:05
protectorChristian Graus7-Dec-08 10:05 
QuestionDisplay A Confirm Box from a CodeBehind Page and Take Input Yes or No for further use. Pin
vkumar095-Dec-08 22:02
vkumar095-Dec-08 22:02 
AnswerRe: Display A Confirm Box from a CodeBehind Page and Take Input Yes or No for further use. Pin
Abhijit Jana5-Dec-08 22:09
professionalAbhijit Jana5-Dec-08 22:09 
GeneralRe: Display A Confirm Box from a CodeBehind Page and Take Input Yes or No for further use. Pin
mr_muskurahat5-Dec-08 22:44
mr_muskurahat5-Dec-08 22:44 
AnswerRe: Display A Confirm Box from a CodeBehind Page and Take Input Yes or No for further use. Pin
Christian Graus5-Dec-08 22:39
protectorChristian Graus5-Dec-08 22:39 
Questioniframe & Server Pin
ahmed eldeghedy5-Dec-08 21:39
professionalahmed eldeghedy5-Dec-08 21:39 
AnswerRe: iframe & Server Pin
Christian Graus5-Dec-08 22:42
protectorChristian Graus5-Dec-08 22:42 
GeneralRe: iframe & Server Pin
ahmed eldeghedy5-Dec-08 22:50
professionalahmed eldeghedy5-Dec-08 22:50 
GeneralRe: iframe & Server Pin
Christian Graus7-Dec-08 11:27
protectorChristian Graus7-Dec-08 11:27 
QuestionException Occured - Sys.WebForms.PageRequestManagerParserException Pin
G Nathan5-Dec-08 20:48
G Nathan5-Dec-08 20:48 
AnswerRe: Exception Occured - Sys.WebForms.PageRequestManagerParserException Pin
Abhijit Jana5-Dec-08 20:58
professionalAbhijit Jana5-Dec-08 20:58 
GeneralRe: Exception Occured - Sys.WebForms.PageRequestManagerParserException Pin
G Nathan5-Dec-08 21:34
G Nathan5-Dec-08 21:34 
GeneralRe: Exception Occured - Sys.WebForms.PageRequestManagerParserException Pin
Abhijit Jana5-Dec-08 22:03
professionalAbhijit Jana5-Dec-08 22:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.