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
B

BlaiseBraye

@BlaiseBraye
About
Posts
7
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • I give up... more source control...
    B BlaiseBraye

    Hi, I am not more than a non productive student but I know that managing a team and working with it is a real challenge. What I can say when reading your post is that if there are problems when committing code between each module, it means that those modules are too coupled, therefore the problem could come from analysis. As said above, you should also certainly spend some time with your "team" in order to build a consistent method and a consistent Team.

    Let's make code sharing our goal... Blaise Braye

    The Lounge collaboration sharepoint tools help

  • Working in an office.
    B BlaiseBraye

    yeah, like this, it sounds great but what about social life? about contact? about making difference between real and virtual life? I don't think we are ready to miss it. For sure, I am not. I love to spend time on computer but I love people too.

    Let's make code sharing our goal... Blaise Braye

    The Lounge architecture

  • inform app of changes in database content
    B BlaiseBraye

    have a look at also http://www.15seconds.com/issue/041006.htm[^] I couldn't give you the answer to your question because I simply didn't try it. For this kind of applications, I am using transactions

    enjoy the code with you is my priority, Blaise Braye

    C# database sql-server sysadmin question announcement

  • trusted connection
    B BlaiseBraye

    the problem is in your server rights, not in your code...

    enjoy the code with you is my priority, Blaise Braye

    C# database sql-server sysadmin security help

  • inform app of changes in database content
    B BlaiseBraye

    http://www.codeproject.com/cs/database/DatabaseEventsArticle.asp[^]

    enjoy the code with you is my priority, Blaise Braye

    C# database sql-server sysadmin question announcement

  • how to cancel the adding row process in DataGridView?
    B BlaiseBraye

    For information I am working with a bindinglist as datasource : see the objectview project here: http://sourceforge.net/projects/objectviews OK, i want to be more explicit, It's really easy to work with them both. But in my context, I have keys collections. So I wanted to have an inputBox which would appear when the object bounded contains a key. Of course this inputBox is asking a unique key for the new object (row...) The idea is that once the object is created, the user is not allowed to edit the key column (which has been set in read only mode at generation time). Currently, how am I working? I have a control which extend the DataGridView and which is composed of an ObjectView let's call them dgvExt and collection. in dgvExt i have my implementation to generate columns, to know which are keys,... in dgvExt I have a EventHandler which listen the collection.RowAdding event. this event is sending in parameter the innerobject (null at this step) that will be bounded to the row. so.. In my EventHandler, I am creating my self the new object if it contains keys. and I set it in the parameter sent by collection. maybe you will understand why I want to work like this when you'll this code:

        void collection\_RowAdding(object sender, InstanceEventArgs e)
        {
            
            InputBox ib;
            Type type = typeof(ConfigurationElement);
            if (e.Type.Equals(typeof(KeyValueConfigurationElement)))
            {
                ib = new InputBox("Insert the key", "Insert key");
                if (ib.ShowDialog() == DialogResult.OK)
                    e.Instance = new KeyValueConfigurationElement(ib.EnteredText, "");
            }
            if (e.Instance != null && e.Instance is ConfigurationElement)
            {
                MethodInfo init
                    = typeof(ConfigurationElement).GetMethod("Init", BindingFlags.NonPublic | BindingFlags.Instance, null, new Type\[\] { }, null);
                init.Invoke(e.Instance, new object\[\] { });
            }
        }
    

    In fact the problem is not what I want to do here, but how to cancel the adding process in dgvExt efficiently? Why to cancel? the inputBox allow the user to cancel... but I don't want a row with empty key... this problem is really hard for me... certainly I am just not on the right way.

    enjoy the code with you is my priority, Blaise Braye

    C# csharp help tutorial question learning

  • is inaccessible due to its protection level
    B BlaiseBraye

    there are two possibilities which mean the same... 1. you forgot to specify the protection level of the component field in your managertemplateform which means by default that it is set to private 2. you didn't forget it but specify it to private... Then if you want it to be not accessible by other class than children of the managertemplateform, you specify the protection level to protected... if you agree that any classes access to it, choose public.

    enjoy the code with you is my priority, Blaise Braye

    C# csharp html css asp-net docker
  • Login

  • Don't have an account? Register

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