User Profile

Collapse

Profile Sidebar

Collapse
Kermit
Kermit
Last Activity: Feb 25 '08, 10:14 AM
Joined: Aug 9 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • [C# .NET 2.0] DataGridViewComboColumn dynamic data display

    Hi.
    How can I dynamicaly filter items in combo column?

    I have a dataTable and I've set is as datasource for all cells in DGVcomboBox Column, but in response to cellClick event I want to limit the displayed items to some fraction of the dataTable.
    How can I do this?
    See more | Go to post

  • Kermit
    started a topic progressBar + Label
    in .NET

    progressBar + Label

    Hi.
    I've searched the forum for answer, but haven't found one.

    The problem is with displaying the label.
    When the progressBar is incremented I change the text of the Label, but it doesn't update.
    I called invalidate on the label, and on it's parent, but it didn't change the text.

    I also tried to do that using ToolStripProgre ssBar and ToolStripLabel, but they also don't work :(

    An...
    See more | Go to post

  • Kermit
    replied to [C#, MSAccess] Update DB using DataAdapter
    in .NET
    Another question on the topic:
    How can I check for any difference between data stored in dataset, and in the database.

    For example: I have dataset that has data retrieved from the database.
    I add a row, and then remove it. The data is still the same. Now, on closing the application I'd like to inform the user, that the dataset and the database contain different information, but only when they really do.

    ...
    See more | Go to post

    Leave a comment:


  • Kermit
    started a topic C# DataSet and AutoNumber
    in .NET

    C# DataSet and AutoNumber

    Hi!
    I have another problem. This time with AutoNumbers.

    I insert a new row to a dataset (ds.Tables["Name"].Rows). How can I get it's id (which is an autonumber) without commiting changes to the database?
    See more | Go to post

  • Kermit
    replied to Password Regular Espression
    in .NET
    Ok, but this ^ in front of \d means that you don't accept digits, right?...
    See more | Go to post

    Leave a comment:


  • Kermit
    replied to inserting checkbox values to the database
    in .NET
    use varchar with an input mask (something like ie. 000\-000\-000;0;)
    See more | Go to post

    Leave a comment:


  • Kermit
    replied to [C#, MSAccess] Update DB using DataAdapter
    in .NET
    It worked, thanks. I haven't thought about that. But is there another way to do that using only one data adapter?...
    See more | Go to post

    Leave a comment:


  • Kermit
    replied to inserting checkbox values to the database
    in .NET
    The SqlDBType.Bit may store 0, 1, or Null values to the database (see tooltip). Basicly it is the same, but maybe sql stores true/false as 0's or 1's?
    See more | Go to post

    Leave a comment:


  • Kermit
    replied to Password Regular Espression
    in .NET
    I may be wrong, as I don't get the notation, but the first code does not allow digits. Try
    Code:
    ^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9]).{4,8}$
    ...
    See more | Go to post

    Leave a comment:


  • Kermit
    replied to inserting checkbox values to the database
    in .NET
    if using OleDB OleDbType.Boole an should work :)
    for SQL try SqlDbType.Bit
    See more | Go to post

    Leave a comment:


  • Kermit
    replied to Dataset to database
    in .NET
    use DataAdapter.Upd ate(DataSet) method.

    use SqlCommandBuild er mySqlCommandBui lder = new SqlCommandBuild er(mySqlDataAda pter);
    to create InsertCommand, UpdateCommand and DeleteCommand for you (if you don't have to complicated SQL queries) and then call
    mySqlDataAdapte r.Update(dataSe t, "name of the table");
    See more | Go to post

    Leave a comment:


  • Kermit
    started a topic [C#, MSAccess] Update DB using DataAdapter
    in .NET

    [C#, MSAccess] Update DB using DataAdapter

    Hi,
    I have the following problem. I load 3 tables to a dataset aaco, and then perform some operations on two tables (insert 1 row in the first table, update one field in the second), and try to call dataAdapter.Upd ate method, and I get an exception.

    Tables:
    - audits (id, object id, ...)
    - controlledObjet cs (id, ...)

    [c# code]
    OleDbCommandBui lder myCommandBuilde r = new OleDbCommandBui lder(aacoDataAd apter);...
    See more | Go to post

  • data is a array of objects. I'm casting object to int.

    I was trying to get id's of all rows that contain certain data, and order them by date.
    See more | Go to post

    Leave a comment:


  • Data type mismatch in criteria expression [C#, MSAccess]

    Hi.
    Here's the problem.
    I use C# application [forms] to access MSAccess database.
    I want to get id's of all records containing some phrase and order results by date (a field in the table).

    here's the code:
    OleDbCommand cmd = new OleDbCommand("s elect id, endDate from audits where objectId ='" + (int)data[0] + "' order by endDate DESC", conn);
    try
    ...
    See more | Go to post

  • In response to MouseHover event of the label create/display the tooltip
    See more | Go to post

    Leave a comment:


  • Kermit
    started a topic Using MSAccess db inC# application
    in .NET

    Using MSAccess db inC# application

    Hi.
    I looked through few pages of threads here, but didn't find the answer to my questions.
    I'm writting a C# application (Windows Forms) that uses MSAccess database, and I have the following questions:
    1. how can I check in what group the current user's is?
    I created a login dialog box, and use the standard connection string to connect:
    "Provider=Micro soft.Jet.OLEDB. 4.0;Data Source=" + database + ";Jet...
    See more | Go to post
No activity results to display
Show More
Working...