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
W

Wild Thing

@Wild Thing
About
Posts
7
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Deserializing of List Array appends instead of overwrite
    W Wild Thing

    Hi, I am using a list of a class. Serialization works fine, but Deserialization leads to creating new lists, which are appended to main list. I.e. if Deflists in AllKeyList contains 5 KeyDefinition Classes, after Deserialization there are 10. How can I force overriding? Thx adv for your help. What I'm doing:

            FileStream fs = new FileStream(sFile, FileMode.Open);
            var x = new System.Xml.Serialization.XmlSerializer(Setup.GetType());
    
            var settings = new XmlReaderSettings { CheckCharacters = false, };
            try
            {
                Setup = (DataSettings)x.Deserialize(fs);
                Console.WriteLine("XML Read {0} erfolgreich", sFile);
    

    Data structure:

    public class KeyDefinition
    {
        public string Name { get; set; }
        public string KeyType { get; set; }
        public List KeyDef { get; set; }
        ....
    }
    
    public class AllKeyList
    {
        public List DefLists { get; set; }
        ...
    }
    
    XML / XSL question data-structures xml json help

  • GridView checkbox cell
    W Wild Thing

    Got it. I had

    this.Show();

    positioned before the initialization block above. This raises the BeginEdit event for the first cell which seems to prevent the altering via program. There are 2 ways to solve this: move

    this.Show();

    or insert

    LLinGrid.EndEdit();

    behind initialization, Thanx for your interest.

    Windows Forms css question

  • GridView checkbox cell
    W Wild Thing

    ok, here is my intitialization:

            foreach (Linie lrow in ud.Linien)
            {
                LLinGrid.Rows.Add();
    
                DataGridViewRow gr = LLinGrid.Rows\[LLinGrid.NewRowIndex - 1\];
    
                gr.Cells\["global"\].Value = Convert.ToString(lrow.Global);
                gr.Cells\["ust"\].Value = Convert.ToString(lrow.Ust);
                gr.Cells\["kennung"\].Value = Convert.ToString(lrow.Kennung);
    
                if ((lrow.Kennung & 0x80) != 0)
                    gr.Cells\["isuz"\].Value = true;    // set and shown correctly !
                if ((lrow.Kennung & 0x40) != 0)
                    gr.Cells\["aktiv"\].Value = true;   // set and shown correctly !
    
                gr.Cells\["dir"\].Value   = Convert.ToString(lrow.Dir);
                                
                **gr.Cells\["xmit"\].Value = true; // Debugger says : true, but shown as unchecked**
         }
    

    if I move the "xmit" column from position 1 to >2, it works. I tried:

            LLinGrid.ClearSelection();
            LLinGrid.Rows\[0\].Cells\[1\].Selected = true;  // select next cell
            LLinGrid.Invalidate();
            LLinGrid.InvalidateCell(LLinGrid.Rows\[0\].Cells\[0\]);
            LLinGrid.Show();
            LLinGrid.UpdateCellValue(0, 0);
    

    All of those didn't show the desired result. The value for the checkbox in the first column stays unchecked until I move to the next cell. this happens only in the first row; follwing rows are correct.

    Windows Forms css question

  • GridView checkbox cell
    W Wild Thing

    Hi, I have a gridview where the first column is a checkbox. When I open the grid, the value of the first checkbox is always false, no matter how it is initialized. When I select another cell, the correct state appears. How could I have the correct value be shown?

    Windows Forms css question

  • Databinding to TextBox
    W Wild Thing

    its a tree structure: the string name is an element of class route, route r1 is an element of class adr, adr ad is an element of class adrData.

    Windows Forms database wpf wcf question

  • Databinding to TextBox
    W Wild Thing

    Hi everybody, I'm trying to bind a class variable to a textbox. the data class looks like:

    public class route
    {
        public string name { get; set; }
        public int adress { get; set; }
    
        public route()
        {
            name = "";
            adress = 0;
        }
    }
    public class adr
    {
        public int index { get; set; }
    
        public route r1 { get; set; }
        public route r2 { get; set; }
        public adr()
        {
            index = 0;
            r1 = new route();
            r2 = new route();
        }
    }
    
    public class para
    {
        public int i1 { get; set; }
        public int i2 { get; set; }
    }
    
    public class adrData
    {
        public string label { get; set; }
        public adr ad { get; set; }
        public para pa { get; set; }
    }
    

    When I try to bind f.e. ad.r1.name to a textbox text via designer, it offers only label, ad and pa for binding. What am I missing here? Thnx adv for your answers.

    Windows Forms database wpf wcf question

  • hmmmmm.... should I write my first article
    W Wild Thing

    Sure, go ahead; would save me the effort of coming over and ask you to explain it to me in person.:-D You also might miss the chance of a second career, if you don't.

    prepare that the light at the end of the tunnel is just a freight train coming your way - metallica

    The Lounge question sharepoint collaboration
  • Login

  • Don't have an account? Register

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