Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: eb24
  • Order by date
  1. eb24

    How to get the Property from Another Class?

    Well, CodeSmith to generate our DAL and BLL. I can access other classes b/c of parent / child relationships, but this is like a type and its only connection that is see, is that its a property. Really appreciate the assistance!
  2. eb24

    How to get the Property from Another Class?

    Thanks for advice. As I continue to learn... that's all I can say at the moment. Still doesn't draw me any closer at the moment to a solution. Any and all tips will be greatly appreciated!
  3. eb24

    How to get the Property from Another Class?

    Thanks for your reply! Maybe I should elaborate on my business logic layer - these classes are genereated via some ORM tool and thus resemble our database schema. So, according to my code from above, the Employee table has a field called StateId which in turn is linked to the State table. So...
  4. eb24

    How to get the Property from Another Class?

    Let's say I have 2 classes, Employee and State (reference the code below for further details), and I set the Employee.stateID, upon the setter being set, how can I get the StateName, i.e. State.stateName? Thank you in advance for any assistance! ----- Employee Class ----- public class Employee...
  5. eb24

    Programmatically add Collection to Column Collection of DataGridView

    Here's my scenario: Work in a C# 2.0 environment with our view layer bound to a business logic layer of objects. Here is what I'm attempting to do: Upon a form loading, user picks a value from a combobox and it brings back a collection of values. These values, I would like them to populate...
  6. eb24

    TimeStamp in DataGridView

    How can I check that what is entered in a TimeStamp cell is in the correct format? I want the format to be in hh:mm. Thanks for any advice.
  7. eb24

    Delete Value in TextBox Bound to Nullable Object

    I am using C#2.0 in a Windows Application and trying to validate a TextBox on its Validating Event. What I am basically looking for is to see if the value entered is a decimcal. Looks to be working but when I delete the contents of the TextBox, i.e. no value in there, the cursor cannot leave...
  8. eb24

    CellFormatting Event - When Column is NOT Visible?

    Where do you have that second piece of code? Within a _CellFormatting Event? FYI, I have the following and does not work: private void dgv_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { if (this.dgv.Columns[e.ColumnIndex].Name == "SecType") { if...
  9. eb24

    CellFormatting Event - When Column is NOT Visible?

    Zameer: Thanks for responding but I've tried that already and having the .Width = 0, one can still see the column with a very small width. By having the Width = 0, as the user tabs through the cells, the Tab Stops within this small column, which I do not want. Any other suggestions anyone?
  10. eb24

    CellFormatting Event - When Column is NOT Visible?

    I am using C# 2.0 in a Windows Forms platform - I am using the CellFormatting() Event to display certain rows of my DataGridView with a certain color depending on the value found in a certain column. This works great if the Column is Visible, but I don't want to display this Column to the end...
  11. eb24

    ComboBox - Bound to Business Object - Update Question

    Well, the framework I'm using has MVC as a basis but has been modified. I am using some of the great templates via www.nettiers.com. If you're using a code generator, I stronly recommend this route. Hope this helps. Any other input regarding my original question?
  12. eb24

    DataGridView - Cursor Change on MouseHover

    I am trying to recognize when the Cursor is over the Header. I have tried the following but it seems to change cursor anywhere within the DataGridView. Thanks for any help! private void DataGridView1_MouseHover(object sender, EventArgs e) { if (DataGridView1.CurrentRow.Index == 0) {...
  13. eb24

    ComboBox - Bound to Business Object - Update Question

    chrissie1: Thanks for your reply - I was wondering if you will be able to assist me still?
  14. eb24

    ComboBox - Bound to Business Object - Update Question

    Working on C# 2.0 Windows Forms with an MVC Pattern in place. I have a bunch of ComboBoxes that are bound to Business Object BindingSources, i.e. Collection BO. Everything works perfectly (CRUD) but I just noticed that if the User tries to update one of the ComboBoxes by deleting its value...
  15. eb24

    Drop-Down List - Horizontal Scroll

    Just wondering if any of who have come across implementing a horizontal scroll bar w/ drop-down lists in c# 2.0?
  16. eb24

    TabControl - SelectedTab Question

    I have a TabControl in place and would like to have the selectedt tab to have bold text and the other tabs to be grayed out or not be so prevalent. I was trying something like this: private void tabControl1_Selected(object sender, TabControlEventArgs e) { if...
  17. eb24

    Check ComboBox to see if it has been changed

    Thanks! That worked! No, just doing some validation of business rules on Save event. Eventhough the database as these constraints in place, I wanted a UI level of validation.
  18. eb24

    Check ComboBox to see if it has been changed

    I am trying to do some validating, and when a certain TextBox is filled an accompanying value from a ComboBox should also be chosen. How can I check if a value from my ComboBox has been picked from its original state, which is nothing from the list of values? if (this.txtCity != null) // ***...
  19. eb24

    DataGridView - Color of Editing Row

    In my DataGridView, I would like the whole row to be of a unique color when the user is editing a cell on that row. I was thinking something like this: private void dgv_CellPainting(object sender, DataGridViewCellPaintingEventArgs e) { dgv.CurrentRow ??? ??? SelectionBackColor =...
  20. eb24

    ComboBox - Loop Through Displayed Values

    I am trying to loop through the values of a ComboBox and it seems that when I use the following: foreach (object item in this.Items) it loops through the whole collection from the pertinent Business Object. I would only like to loop through the values given in the DisplayMember, e.g...

Part and Inventory Search

Back
Top