Click here to Skip to main content
15,887,434 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: How to create a web application project in the local IIS Pin
fjparisIII16-Jul-10 7:29
fjparisIII16-Jul-10 7:29 
AnswerRe: How to create a web application project in the local IIS Pin
Abhijit Jana15-Jul-10 19:21
professionalAbhijit Jana15-Jul-10 19:21 
GeneralRe: How to create a web application project in the local IIS Pin
fjparisIII16-Jul-10 11:25
fjparisIII16-Jul-10 11:25 
QuestionAuto Ellipses Label in ASP.Net Pin
PDTUM15-Jul-10 8:34
PDTUM15-Jul-10 8:34 
AnswerRe: Auto Ellipses Label in ASP.Net Pin
NeverHeardOfMe15-Jul-10 8:58
NeverHeardOfMe15-Jul-10 8:58 
AnswerRe: Auto Ellipses Label in ASP.Net Pin
PDTUM15-Jul-10 10:57
PDTUM15-Jul-10 10:57 
GeneralRe: Auto Ellipses Label in ASP.Net Pin
Not Active15-Jul-10 14:08
mentorNot Active15-Jul-10 14:08 
QuestionNeed to remove empty space from GridView due to hidden columns Pin
Adam Brown 315-Jul-10 5:43
Adam Brown 315-Jul-10 5:43 
I have a GridView that utilizes two hidden columns. I initially tried to hide the columns using visible=False on the BoundField but that did not work because I could not retreive the values of the cells. I chose to use a cssClass to set the visibility:hidden for each hidden column and it worked. The problem is that the border around the gridview still contains empty space for the hidden columns. How do I remove the empty space from the GridView while still maintaining the hidden columns?

<asp:GridView ID="grdUsers" DataKeyNames="UserIndex" AutoGenerateColumns="False" runat="server" >
   <selectedrowstyle backcolor="LightCyan" forecolor="DarkBlue" font-bold="true"/>  
   <Columns>                       
       <asp:BoundField DataField="eID" HeaderText="Network ID" ReadOnly="True" />
       <asp:BoundField DataField="FirstName" HeaderText="First Name" ReadOnly="True" />
       <asp:BoundField DataField="LastName" HeaderText="Last Name" ReadOnly="True" />
       <asp:BoundField DataField="Department" HeaderText="Department" ReadOnly="True" />
       <asp:BoundField DataField="Location" HeaderText="Location" ReadOnly="True" />
       <asp:BoundField DataField="CostCenter" HeaderText="Cost Center" ReadOnly="True" />
       <asp:BoundField DataField="ManagerName" HeaderText="Manager" ReadOnly="True" />
       <asp:BoundField DataField="RoleName" HeaderText="Role" ReadOnly="True" ItemStyle-CssClass="expander"/>
       <asp:BoundField DataField="RoleOwner" 
                       HeaderText="Role Owner" 
                       ReadOnly="True" 
                       ItemStyle-BorderStyle="None" 
                       HeaderStyle-BorderStyle="None" 
                       HeaderStyle-CssClass="invisibility" 
                       ItemStyle-CssClass="invisibility" 
                       HeaderStyle-Width="0px" 
                       ItemStyle-Width="0px"/>
       <asp:BoundField DataField="RoleBusinessDesc" 
                       HeaderText="Role description" 
                       ReadOnly="True" 
                       ItemStyle-BorderStyle="None"  
                       HeaderStyle-BorderStyle="None" 
                       HeaderStyle-CssClass="invisibility" 
                       ItemStyle-CssClass="invisibility"  
                       HeaderStyle-Width="0px" 
                       ItemStyle-Width="0px" />
  </Columns>
</asp:GridView> 


CSS class

.invisibility
{
    visibility:hidden;
}

AnswerRe: Need to remove empty space from GridView due to hidden columns Pin
thatraja15-Jul-10 8:20
professionalthatraja15-Jul-10 8:20 
GeneralRe: Need to remove empty space from GridView due to hidden columns Pin
Adam Brown 316-Jul-10 3:49
Adam Brown 316-Jul-10 3:49 
GeneralJavaScript action result no longer working after converting to partial view. Pin
Brady Kelly15-Jul-10 5:00
Brady Kelly15-Jul-10 5:00 
QuestionHow to dynamically create an Excelworkbook with two sheets Pin
antony beula15-Jul-10 3:12
antony beula15-Jul-10 3:12 
AnswerRe: How to dynamically create an Excelworkbook with two sheets Pin
Peace ON15-Jul-10 4:05
Peace ON15-Jul-10 4:05 
QuestionUpload And Crop Image in asp.net Pin
ShafiqA15-Jul-10 3:11
ShafiqA15-Jul-10 3:11 
AnswerRe: Upload And Crop Image in asp.net Pin
Peace ON15-Jul-10 4:08
Peace ON15-Jul-10 4:08 
Questionerror while using window.createPopup() in firefox Pin
kjsl2k915-Jul-10 1:08
kjsl2k915-Jul-10 1:08 
AnswerRe: error while using window.createPopup() in firefox Pin
Peace ON15-Jul-10 1:14
Peace ON15-Jul-10 1:14 
Questionprogramming with asp Pin
Prasannajeet15-Jul-10 0:57
Prasannajeet15-Jul-10 0:57 
AnswerRe: programming with asp Pin
NeverHeardOfMe15-Jul-10 1:09
NeverHeardOfMe15-Jul-10 1:09 
AnswerRe: programming with asp Pin
Peace ON15-Jul-10 1:11
Peace ON15-Jul-10 1:11 
AnswerRe: programming with asp Pin
Anurag Gandhi15-Jul-10 2:26
professionalAnurag Gandhi15-Jul-10 2:26 
QuestionReportViewer - Changing the Local Report Pin
BugMeNotFTW15-Jul-10 0:30
BugMeNotFTW15-Jul-10 0:30 
QuestionMSCharts with large amount of data is slow. Pin
Cobusvdvyver14-Jul-10 23:42
Cobusvdvyver14-Jul-10 23:42 
AnswerRe: MSCharts with large amount of data is slow. Pin
Suresh Pirsquare15-Jul-10 0:55
Suresh Pirsquare15-Jul-10 0:55 
GeneralRe: MSCharts with large amount of data is slow. Pin
Cobusvdvyver15-Jul-10 1:38
Cobusvdvyver15-Jul-10 1:38 

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.