Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
J

joschmo80

@joschmo80
About
Posts
4
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Mimicking C# DataGrid formatting in HTML or XML
    J joschmo80

    Experts, I wish to display a C# DataGrid exactly as it appears on a C# Form after saving the DataSet to a file. The format (xml or html) does not matter (I'm assuming these are my only choices). The best I can do so far is: 1. call the DataSet.WriteXMLSchema method to create an xsl file 2. call the DataSet.WriteXML method to create my XML file 3. Create an XslTransform object 4. Load the xsl file via XslTransform.Load 5. Transform my ZML file to HTML via the XslTransform.Transform(source, destination) method However, the HTML file does not contain any of the table formatting (since the generated xsl file doesnt contain table formatting). I realize I can create the XSL file by hand, but I was hoping there was a way to do it automatically such that table formatting is included. Any suggestions, either in creating an XML file with formatting or transforming a standard xml file to html such that formatting is preserved? Thanks in advance.

    C# xml csharp html question

  • Deleting a Row from a DataSet in a DataGrid
    J joschmo80

    Thanks! Your response was most helpful, and your right, that did the trick!

    C# database help

  • Deleting a Row from a DataSet in a DataGrid
    J joschmo80

    Here is what I am trying to do. I have a DataSet that is displayed in a DataGrid. I would like the user to be able to highlight a row and then press the delete button above it, and have the highlighted row be deleted. I have somewhat accomplished this. My current method is to search the DataGrid for the selected rows and store their index number. Then delete the rows with the corresponding index in the DataSet. This works great as long as the DataSet was not sorted at all while in the DataGrid. If the data was sorted then the index's of the DataGrid are still in ascending order (i.e. 0 for the top row, 1, ...), but the index's of the DataSet are in the order that the row was added. Thus, I delete the wrong row. The code that I have is below, any help is appreciated. ArrayList rowsToRemove = new ArrayList(); for(int i = 0; i < myDataSet.Tables[myTableName].Rows.Count; i++) { if(myDataGrid.IsSelected(i)) { rowsToRemove.Add(i); } } int count = 0; foreach (object j in rowsToRemove) { myDataSet.Tables[myTableName].rowsToRemove[(int)j - count].Delete(); count ++; }

    C# database help

  • C# pretty printers
    J joschmo80

    Dear experts, Does anyone know of some good C# pretty printers? I know .NET has some code formatting functionality built in, but I want an application that can handle variable/method/class renaming as well as mundane things like spacing, tabs, etc. I have found two so far, CodeSmart Code Formatter and SemanticDesigns C# Code Formatter, but I was hoping to be able to evaluate others. Thanks! -joschmo80

    C# csharp question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups