Search:

Type: Posts; User: Fedaykin

Page 1 of 5 1 2 3 4

Search: Search took 0.04 seconds.

  1. Re: JsonConvert.DeserializeObject into new instance of Class

    Yep, you guessed it. It was simply a case of not having the variables defined in the right location in the loop! Could not see the forest because of all those damn trees.
  2. Re: JsonConvert.DeserializeObject into new instance of Class

    Ah ha! Okay, I think I have narrowed it down to one of the Properties under the Part Class. I believe the issue is that I need a new instance of the Part Class, but I'm not sure how to do that and...
  3. Re: JsonConvert.DeserializeObject into new instance of Class

    The results are always new results as long as a new search value is sent. If the next value in the loop is not matched in the json request (which i can see the value sent/returned with breakpoints),...
  4. Re: JsonConvert.DeserializeObject into new instance of Class

    I did set the deserializedJson to Nothing at the end of the loop and I Dim'd the variable outside the loop and set it inside, but the issue persists, the values inside of those nested classes remain....
  5. Re: JsonConvert.DeserializeObject into new instance of Class

    It isn't possible to set NewRootClass after APISend.
  6. [RESOLVED] JsonConvert.DeserializeObject into new instance of Class

    I'm not sure how to go about deserializing json into a new instance of a class. I used the visual studio json class builder to build a group of classes. The problem is when I loop through and do...
  7. Replies
    2
    Views
    7,069

    Re: CURL in VB.net (API)

    Grrrrr, yes in that example. In all my previous tries I had a trailing comma in the string! Found it right when I posted! Sorry about that.
  8. Replies
    2
    Views
    7,069

    [RESOLVED] CURL in VB.net (API)

    Does anyone have a working sample of CURL to VB.net? I have exhausted every example I can find and all of them return NULL search results. I can run the CURL from a command prompt and it returns...
  9. Replies
    22
    Views
    13,304

    Re: DataGridView won't refresh

    Oh wow! Very interesting, thank you I will try this.

    Thank you to everyone who responded, I use DataGridView all the time and I definitely got a few more methods to add to my library.
  10. Replies
    22
    Views
    13,304

    Re: DataGridView won't refresh

    Okay, I was really already doing the Table Adapter update here as you suggested. I named it UpdateStartDate in the TableAdapter itself. However, since it is a complicated SQL View with joins it will...
  11. Replies
    22
    Views
    13,304

    Re: DataGridView won't refresh

    Ahh, okay. Where do you put those? In the wizard?
  12. Replies
    22
    Views
    13,304

    Re: DataGridView won't refresh

    No need to apologize, I'm very grateful for your help and insight. I have relied on this forum for years, I'm the sole programmer for my company so this is an invaluable resource for me.

    I could...
  13. Replies
    22
    Views
    13,304

    Re: DataGridView won't refresh

    I have reconfigured the code exactly as you described, but that does not resolve the issue. I have no trouble with code firing, all the methods fire regardless of their location. The DataGridView...
  14. Replies
    22
    Views
    13,304

    Re: DataGridView won't refresh

    Believe me, I'm as frustrated as you are! ha ha. The code I posted is on the FIRST form. The second form is just a DateTimePicker and a button to change the date.

    Second pop-up form code:
    ...
  15. Replies
    22
    Views
    13,304

    Re: DataGridView won't refresh

    Still not able to make this refresh. I'm trying to send only strings from the second form back to the first form and I have bound the DataGridView to a BindingSource/TableAdapter/DataSet in the form...
  16. Replies
    22
    Views
    13,304

    Re: DataGridView won't refresh

    Okay, that makes sense. I suspected there was some kind of default instance of a form lurking around in the background. Let me reconfigure this and I will post back with what works or doesn't work.
  17. Replies
    22
    Views
    13,304

    Re: DataGridView won't refresh

    @wes4dbt - SchTabLoad is called from Me.Load. SchTabLoad is called again from the second form closing. (No, I do not have a Table called 'Table' in the database, my code was just sanitized for...
  18. Replies
    22
    Views
    13,304

    Re: DataGridView won't refresh

    Thank you for the very detailed explanation. However, I don't understand why my original posted code just called again would not accomplish the same thing. The datatable is cleared, it queries the...
  19. Replies
    22
    Views
    13,304

    Re: DataGridView won't refresh

    Love the quote and reply, I should have seen that coming. However, if it's stupid then I would like to learn why it is stupid.

    I do see the efficiency in the second form simply supplying the...
  20. Replies
    22
    Views
    13,304

    [RESOLVED] DataGridView won't refresh

    I'm throwing myself on the mercy of the court here. I cannot get this DataGridView that is nested in a TabControl Tabpage3 to refresh without refreshing it twice. It's like a zombie DataGridView. I'm...
  21. Re: DataGridViewCheckBoxColumn solid filled black boxes

    Thank you both, I figured out yesterday after my post that it was black box was part the three state. jmc, I will have to try what you have suggested, but I was using this method to avoid looping to...
  22. DataGridViewCheckBoxColumn solid filled black boxes

    I just did a recent thread to fill a DataGridViewCheckBoxColumn from a SQL bit by replacing the column by index then pointing it to the same DataPropertyName:

    Here is the code:

    ...
  23. Re: [RESOLVED] DataGridViewCheckBoxColumn from SQL bit type

    Oh my goodness, of course! We are removing only the displayed column, not the datatable column! Thank you, I'm not sure why I didn't connect that dot. I agree that it probably defaults to the .Name...
  24. Re: DataGridViewCheckBoxColumn from SQL bit type

    Okay that works!? It makes zero sense to me how it works, but it works. Here is the working code:

    'after the DataGridView datasource is set:

    Dim FlyIndex As Integer =...
  25. Re: DataGridViewCheckBoxColumn from SQL bit type

    Ahhhh, gotcha. Okay let me try.
  26. Re: DataGridViewCheckBoxColumn from SQL bit type

    Okay, but how do I get the data into the new column without looping? Is that possible?
  27. Re: DataGridViewCheckBoxColumn from SQL bit type

    Your assumptions are correct, DataGridView is created in Designer and DataGridViewColumns are autogenerated. I think the NULL values in the database bit column are what are killing me. Maybe if I...
  28. Re: DataGridViewCheckBoxColumn from SQL bit type

    Okay, I tried:

    Dim colu As DataGridViewCheckBoxColumn = DataGridView2.Columns("FLY")
    With colu
    .ThreeState = True
    End With

    And got:

    An unhandled...
  29. Re: DataGridViewCheckBoxColumn from SQL bit type

    Thank you for the quick reply. The DataGridView is created in Designer and populated with an SQL query. I was attempting to declare the DataGridViewCheckBoxColumn with code above but I need the data...
  30. [RESOLVED] DataGridViewCheckBoxColumn from SQL bit type

    I am looking for a method to convert a SQL bit column (0, 1, NULL) queried into a DataGridViewCheckBoxColumn without using a loop. I tried:

    Dim cell As DataGridViewCell = New...
  31. Re: DataGridView formatting firiing multiple times

    No, the ColorDGV only runs on the DataGridView that is opened, it does not run all 3. The code even has IF statements that only run based on the the DGV that is selected/opened.

    I was trying not...
  32. Re: DataGridView formatting firiing multiple times

    To be clear your solution worked perfectly for populating the form (without using the button click):

    Private Sub TabControl1_Changed(sender As Object, e As EventArgs) Handles...
  33. Re: DataGridView formatting firiing multiple times

    Thank you for the explanation, however now I lose my formatting if I sort the DGV. I have tried changing the ColorDGV to:

    Private Sub ColorDGV(sender As Object, e As...
  34. Re: DataGridView formatting firiing multiple times

    You saved my life!!! Why on Earth does TabControl1.SelectedIndexChanged work when TabPage1.Enter does not?? It's not logical. Actually, all of the other methods suggested SHOULD be able to be applied...
  35. Re: DataGridView formatting firiing multiple times

    I was using TabPage1.Enter, do you think TabControl SelectedIndexChanged will have a different result? I'm not sure why it would but I will definitely give it a try.
  36. Re: DataGridView formatting firiing multiple times

    I tried handling DataGridView3.DataSourceChanged and the DGVColor sub definitely runs, but it does not update the colors in the DataGridView. Again, if I let the DataGridView fully populate on the...
  37. Re: DataGridView formatting firiing multiple times

    I tried handling DataGridView3.DataSourceChanged and the DGVColor sub definitely runs, but it does not update the colors in the DataGridView. Again, if I let the DataGridView fully populate on the...
  38. Re: DataGridView formatting firiing multiple times

    I tried handling CellFormatting and it fired more times than I could count. I tried setting breakpoints on every other sub in the form but nothing else fired. It completes the loop in ColorDGV and...
  39. DataGridView formatting firiing multiple times

    I have a DataGridView populated when entering a Tab. I need to loop through the DataGridView after the Datasource is assigned to apply formatting, however the method I'm using to format the grid is...
  40. Re: Datatable select rows after value and before value (multiple headers in rows)

    Okay, I ended up doing it like this:


    Dim drp1() As DataRow = dt.Select("A = 'Retirement Plan: A'")
    If drp1.Any Then
    Dim i As Integer = dt.Rows.IndexOf(drp1(0)) 'Get...
Results 1 to 40 of 179
Page 1 of 5 1 2 3 4



Click Here to Expand Forum to Full Width