hi
i want to ask about how to disable the button when the datagrid have 9 rows?
i want to control the button.after the datagrid have 9 rows, then the button.enabled=false.
tq.
hi
i want to ask about how to disable the button when the datagrid have 9 rows?
i want to control the button.after the datagrid have 9 rows, then the button.enabled=false.
tq.
Jump to PostWhere is the button? in a row of the grid or outside?
Where is the button? in a row of the grid or outside?
See if this helps.
Private Sub DataGridView1_RowsAdded(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewRowsAddedEventArgs) Handles DataGridView1.RowsAdded
If DataGridView1.RowCount = 10 Then Button1.Enabled = False
End Sub
The button is outside.Thank you.
This thread is solved.^ ^
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.
You're trying to visit a URL that doesn't currently exist on the web. Most likely, a member posted a link a long time ago to a web page that has since been removed. It's also possible that there was a typo when posting the URL. We redirect you to this notice instead of stripping out the link to preserve the integrity of the post.