Search:
Type: Posts; User: Fedaykin
Search:
Search took 0.04 seconds.
-
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.
-
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...
-
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),...
-
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....
-
It isn't possible to set NewRootClass after APISend.
-
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...
-
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.
-
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...
-
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.
-
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...
-
Ahh, okay. Where do you put those? In the wizard?
-
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...
-
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...
-
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:
...
-
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...
-
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.
-
@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...
-
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...
-
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...
-
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...
-
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...
-
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:
...
-
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...
-
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 =...
-
Ahhhh, gotcha. Okay let me try.
-
Okay, but how do I get the data into the new column without looping? Is that possible?
-
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...
-
Okay, I tried:
Dim colu As DataGridViewCheckBoxColumn = DataGridView2.Columns("FLY")
With colu
.ThreeState = True
End With
And got:
An unhandled...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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...
-
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.
-
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...
-
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...
-
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...
-
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...
-
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...
|
Click Here to Expand Forum to Full Width
|