User Profile

Collapse

Profile Sidebar

Collapse
yoda
yoda
Last Activity: Sep 18 '12, 04:51 PM
Joined: Dec 27 '06
Location: Canada
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • yoda
    replied to Header Spanning 2 Columns GridView
    Yea sorry I add how I export my GridView to an excel for some reason, but non in particular. I should probably edit that post to take that out.

    Yea I originally I had trouble with my GridView viewing the columns properly here's the format with out the excel:

    Col 1 ---- Col 2 ----- Col 3 -------------A---------------B--------------C--------------D------
    ...
    See more | Go to post

    Leave a comment:


  • yoda
    replied to Header Spanning 2 Columns GridView
    Unfortunately this program hasn't been developed by me, and hasn't been built from the ground up. So I can't really say how valid or invalid the HTML is and I'm going of off what was already there and google. I've never programmed in ASP.NET or C#(Though it's very similar to Java) so this is all new to me, and haven't figured out the limitations of ASP since I've rarely programmed for the web.

    But thank you for the insight on how you...
    See more | Go to post

    Leave a comment:


  • yoda
    replied to Header Spanning 2 Columns GridView
    Figured it out. Ended up just adding another header row to the to the GridView and adding TableCells to it and calling the TableCell.Colum nSpan property and setting it to 2.

    Example:

    Code:
    //Create a new Header Row
    GridViewRow HeaderGridRow =
                new GridViewRow(0, 0, DataControlRowType.Header,DataControlRowState.Normal);
    
    //Create TableCells
    TableCell HeaderCell = new TableCell();
    ...
    See more | Go to post

    Leave a comment:


  • yoda
    started a topic Header Spanning 2 Columns GridView

    Header Spanning 2 Columns GridView

    Hello Everyone,

    I've scoured internet looking for a way to span a heading over over 2 columns and to no avail. There are many solutions but none are what I'm looking for.

    I've attached a excel file with what the gridview should look like.

    If you look there are headers that span 2 columns. The columns with Count and Balance should be under these headers.

    All the columns in the table are dynamically...
    See more | Go to post
    Last edited by yoda; Feb 24 '12, 11:57 PM. Reason: More explanation. Took away my code for exporting a gridview to excel.

  • yoda
    replied to Change Gridviews Font Size Via C#
    Thanks, I should have known to try the CssStyle instead of CSSStyle.
    See more | Go to post

    Leave a comment:


  • yoda
    replied to Change Gridviews Font Size Via C#
    Thanks for the reply, but it seems that didn't do the trick either. I'm getting an error message:

    Error 'System.Web.UI. AttributeCollec tion' does not contain a definition for 'CSSStyle'

    Is it possible the CSSStyle property isn't available in .NET 2.0?

    EDIT:
    So I was correct it seems the CSSStyle property does not exist in .NET 2.0 :(
    See more | Go to post
    Last edited by yoda; Feb 21 '12, 01:47 PM. Reason: Spelling / found the answer to my question about the .Net 2.0

    Leave a comment:


  • yoda
    replied to windows border
    Or you can set the minimum-size and the maximum-size properties to be the same value making it basically a non-resizable form.
    See more | Go to post

    Leave a comment:


  • yoda
    replied to windows border
    You could just use the resize event so when someone resizes the form or window you just set it back to the original values?

    But obviously it may not be the best choice because user can still resize it technically.

    http://msdn.microsoft.com/en-us/libr...vs.80).aspx#Y0...
    See more | Go to post

    Leave a comment:


  • yoda
    replied to windows border
    Why not just use the windows properties and make the border none-resizeable?
    See more | Go to post

    Leave a comment:


  • So I wasn't able to use do this without the aid of a external library because I was using .NET 2.0. But with the external SharpZipLib Library I was able to create this code fairly easily.

    Basic Idea is to place the datatable into a memory stream like so:
    Code:
    MemoryStream mem = new MemoryStream(); // create a memory stream to hold the datatable.
                StreamWriter sw = new StreamWriter(mem); // write the datatable
    ...
    See more | Go to post

    Leave a comment:


  • yoda
    started a topic Change Gridviews Font Size Via C#

    Change Gridviews Font Size Via C#

    Hey everyone,

    I would like to change the font size programmaticall y via C# to use pixels instead of the standard point system.

    The code below is what I have now and want to change it to use pixels instead.
    Code:
     GridView1.RowStyle.Font.Size = FontUnit.XSmall;
    Thanks,
    Yoda.
    See more | Go to post
    Last edited by jhardman; Feb 18 '12, 01:09 AM. Reason: Moved to asp.net forum (accidentally posted in classic asp)

  • Possible? Convert DataTable to MemoryStream then to CSV then ZIP it.

    Hi everyone I'm fairly new to the C# programming language and was wonder if it is possible to Convert a DataTable to a MemoryStream then output that into a CSV file and then Zip that file.

    Also note I know how to get to the CSV File part but don't know how to take that file and Zip it without creating it on a clients computer and reading it in and Zipping it.

    But this Zip file must be created and zipped on the webserver...
    See more | Go to post

  • Environment.Newline Vs. ControlChars.Newline?

    Quick Question, in class today we were learning something to do with newlines, but the teacher didn't explain the difference between Environment.new line and ControlChars.ne wline, she was wondering as well because the text book uses Environment and she's always used ControlChars.

    Can some one possibly explain the difference between the two? And When you would use one or the other?

    Thanks,

    Yoda.
    See more | Go to post

  • Looping over Character ArrayList and replacing characters with values from a HashMap

    So has the title says I need to find a away to loop over a Character ArrayList and replace the characters with a values from a HasMap.


    This is a simple encryption but I can't figure it out. What I have to do is get the distinct characters from the text that's been passed in and then assign values to them using a HashMap. I've done that. Also in front of the file there should be the number of distinct characters and the distinct...
    See more | Go to post

  • Never mind figured it out. All you have to do if the folder your moving from or a folder in the path is hidden do a \*.* for the folder your looking for example.

    Code:
     move /y "C:\Documents and Settings\%username%\Local Settings\Application Data\Microsoft\Outlook\*.*"
    You have do do this because in my example Local Settings is a hidden folder so you have to do the *.* thing in outlook to move the files in that...
    See more | Go to post

    Leave a comment:


  • How to move hidden folders with move command in a batch file?

    As the title suggests i'm trying to move a hidden folder with a batch file, but i get a Access Denied error, and i'm admin to the computer so i'm very confused, so if someone could help me that would be excellent.

    Thanks,

    Yoda

    Here's code:
    Code:
    xcopy/s "C:\Documents and Settings\%username%" "E:\Documents and Settings\%username%"
    
    move /y "C:\Documents and Settings\%username%\Local
    ...
    See more | Go to post

  • Thanks so much tetrahedral and Oralloy that really helped me out, I'll post code when i'm done :)

    Thanks,

    Yoda
    See more | Go to post

    Leave a comment:


  • Batch file program to copy folder from one drive to another.

    This script needs to be copy folder lets say D:\windows\*me* to C:\windows\*me* . The problem I'm having is the *me* being a variable. So *me* always changes to who ever logs into the machine. So the real question is how to i make *me* in the file path change to whoever is logged in?

    Thanks in advance,

    Yoda.
    See more | Go to post

  • yoda
    replied to problem with pygame
    I use this code

    Code:
    while keepGoing:
            clock.tick(30)
            for event in pygame.event.get():
                if event.type == pygame.QUIT: # if X box clicked, game closes
                    keepGoing = False
                if event.type == pygame.KEYDOWN:
                    if event.key == pygame.K_ESCAPE: #press escape the game closes
                        keepGoing = False
    ...
    See more | Go to post
    Last edited by yoda; May 21 '09, 01:09 AM. Reason: Word Change

    Leave a comment:


  • yoda
    replied to Hostnames not showing up in DHCP
    I don't know if this will help. But many times students may use a batch file to use ipconfig/ release and the ipconfig/ renew to connect to the network again, but i don't know if this may affect the hostname server getting a response from the computer.

    Also students maybe running a portable firewall, I myself as a student did this for awhile and i can block any connection to my computer. From other students trying to hack me or the...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...