pharaon's Profile User Rating: -----

Reputation: 0 Apprentice
Active Members
Active Posts:
86 (0.03 per day)
18-October 07
Profile Views:
Last Active:
User is offline Feb 16 2015 12:38 PM

Previous Fields

Who Cares
Dream Kudos:

Latest Visitors

Icon   pharaon has not set their status

Posts I've Made

  1. In Topic: access database structure design

    Posted 9 Feb 2015

    but if i want to modify the data in the DGV will it be easy for to tell which data be save to which table
  2. In Topic: access database structure design

    Posted 9 Feb 2015

    when i make search for member
    lets say if members have the same name from different families so i want to display the families of those members and their families member as well
    what will be the best way to display this? one DGV or two or what
  3. In Topic: vs.2013 browser crash

    Posted 18 Nov 2014

    dos any one know about
  4. In Topic: vs.2013 browser crash

    Posted 15 Nov 2014

    well other users going to use this application, so it wont be nice thing to let other users go through this steps, also I'm afraid to do it in code and then antivirus caught my application as a virus going to change the registry
    is there any other solution?
  5. In Topic: many data with few textboxs

    Posted 29 Aug 2014

    View Postdemausdauth, on 28 August 2014 - 06:39 AM, said:

    Think about what you need the controls on your form to do.
    It seems like you want your button to have 2 responsibilities - initially load your data into your grid and also to add new data to the grid. What I would do is apply some SOLID principles and separate out the responsibility of what some methods do.

    For instance - maybe you should have a method to initially load the data to the grid, one for adding rows of data to the grid, one for saving data to the database, one for querying the database.

    Another thing to think about is this - you want to add a row to your datagridview, but in your code you don't actually seem to be doing anything that would add to your datagridview. If you are following the flow of - add the textbox data to bindingsource and then re query to fill the datagridview again, it doesn't seem to me to that the data in the binding source is being saved to the database. Granted I don't/haven't used the BindingSource myself so I don't know the subtleties of this control, but it doesn't appear that the textbox data is being persisted to the database.

    Last thought - sometimes you have to go back to square one. Get your code to do one thing at a time, add buttons to perform a specific function - load data, save textboxes to grid, save to database, etc... once you have these specific processes working, you can start to combine them (if necessary).

    I agree with you but at this stage I'm not trying to save to the database I'm just trying to bind controls to table then save that table at once to the database later
    so I'm using the DGV to check what data been saved to the table and I have trouble saving Date/Time to the table

    any one know how to bind Date/Time to table in the right way

My Information

Member Title:
D.I.C Head
Age Unknown
Birthday Unknown

Contact Information




pharaon has no profile comments yet. Why not say hello?