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: groston
  • Order by date
  1. groston

    ADO.NET - problem assigning primary key column

    fillSchema is called before you call fill. What it does is get info like the primarykey. Use VS help and read up on it. ---- Gerry Roston gerry@pairofdocs.net
  2. groston

    ADO.NET - problem assigning primary key column

    try: Dim ds As DataSet Dim da As New SqlDataAdapter("Select * from foo", cn) da.FillSchema(ds, SchemaType.Mapped, "Table") da.Fill(ds, "Table") ---- Gerry Roston gerry@pairofdocs.net
  3. groston

    ADO.NET - problem assigning primary key column

    Where is Seq defined as the primary key? In the database? If so, did you first do a FillSchema or set the column to be the primarykey column? ---- Gerry Roston gerry@pairofdocs.net
  4. groston

    ADO.NET - problem assigning primary key column

    Can you please post some code. I have code that does what you are trying to do and it works reliably. ---- Gerry Roston gerry@pairofdocs.net
  5. groston

    ADO.NET - problem assigning primary key column

    The problem is that when a byte array is returned, its value is seen as <byte array., thus they all look the same! I do not remember my solution - I either created another column and used an integer as the key or I converted the byte array to a string and used it. Either way, the answer is not...
  6. groston

    Dumb file sharing question

    Great idea... But it didn't work. Something is major league screwed up. Not worth spending any more time on this - I'll solve the problem by pushing data from computer2->computer1 instead of pulling it. Thanks for your help. ---- Gerry Roston gerry@pairofdocs.net
  7. groston

    Dumb file sharing question

    wolluf, Thank you for pointing this out. Unfortunately, something strange is going on... When logged into computer1 using my user account, control userpasswords2 showed four passwords - 2 passport, one for my laptop and one for a server I am building. However, none for the other workstation...
  8. groston

    Dumb file sharing question

    I have two computers on my home network. At some point in time, I logged onto computer2 from computer1 using username1. Being lazy, I told the system to remember the username and password. Now, I want to log onto computer2 from computer1 using username2. What the heck should I do to get the...
  9. groston

    Cannot delete paragraph format in Word XP

    It turns out that this is a bug in MS Word. If you have a table with an empty cell, you cannot use 'Select all <x> instances> to select those paragraphs. Instead, you must to a 'Replace All', finding the paragraph format you want and repalcing it with some other style. ---- Gerry Roston...
  10. groston

    Cannot delete paragraph format in Word XP

    I am working on a document that I did not create. In the 'Styles and Formatting', I have selected to show only 'Formatting in use'. To update a document's formatting, I typically right-click on the format that I want to change, choose 'Select all <x> intances', then click the format to which I...
  11. groston

    Setting text in DataGrid ButtonColumn based on data row value

    As usual, LV was right on target. Just one small fix: 'runat=server' needs to be added to the two <asp:button...> lines. ---- Gerry Roston gerry@pairofdocs.net
  12. groston

    Setting text in DataGrid ButtonColumn based on data row value

    My guardian programmer comes through again! Thanks! ---- Gerry Roston gerry@pairofdocs.net
  13. groston

    Setting control value via javascript called from function

    LV, I haven't forgotten about you - I just got pulled into 17 other things. I also realized a fundamental error with my approach - I was updating the underlying DB without giving the user the chnace to cancel. So, I am fixing this, having all changes be applied to a dataset object until the...
  14. groston

    DVD drive lost after Windows updates

    The solution was to delete the IDE device (in device manager) and reboot twice. ---- Gerry Roston gerry@pairofdocs.net
  15. groston

    Seeking more elegant form of expression

    One answer, which may not be considered 'elegant' is to use dynamic SQL. This method seems to be working well for me. Another possibility, if the value beign checked is numeric, is to use an AND or OR in the SQL statement. For example, if SuperUser = 0x8 PowerUser = 0x4 JoeUser = 0x2 VirusUser...
  16. groston

    Setting text in DataGrid ButtonColumn based on data row value

    Can't quite wrap my head around this one... Given a datagrid, based on an underlying DataTable, that has two Button Columns and several bound columns: <Columns> <asp:ButtonColumn Text=&quot;Edit&quot; ButtonType=&quot;PushButton&quot; CommandName=&quot;Edit&quot;></asp:ButtonColumn>...
  17. groston

    Measuring string width, BUT no PaintEventArgs

    Paszt, Thanks for the assistance. The answer was not exactly as you specified - in ASP.NET, the call Me.CreateGraphics doesn't get you anywhere as a Page object does not suport this method. What worked for me was: Dim objBitmap As Bitmap = New Bitmap(1000, 1000) Dim g As Graphics =...
  18. groston

    DVD drive lost after Windows updates

    I am putting together a new computer. After installing XP (and third party device drivers), all of my devices were present. In particular, both my CDRW and DVD/WR drives were present in the device manager. After installing all of the Windows updates, the DVD/RW drive is no longer in the device...
  19. groston

    Measuring string width, BUT no PaintEventArgs

    Sorry - small error in post - All of the methods I have seen for calculating string width depend on the Graphics.MeasureString method exposed by the PaintEventArgs parameter of a form or control's Paint event. ---- Gerry Roston gerry@pairofdocs.net
  20. groston

    Measuring string width, BUT no PaintEventArgs

    In my application, I get a string of data from a user. I need to determine the length of the string, because if it is longer than some predetermined length, I need to insert a carriage return so that it fits inside a fixed width box on a PDF form. All of the methods I have seen for calculating...

Part and Inventory Search

Back
Top