Joined
Last Seen
0 Reputation Points
18% Quality Score
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 5
- Posts with Downvotes
- 2
- Downvoting Members
- 4
0 Endorsements
Ranked #25.0K
7 Posted Topics
I want to format certain columns to allow only a certain number of numbers like you can only input number 0-7 and if not a message box shows up.. can someone lead me in the right direction
I want my code to affect column 5 and 6 to, but everytime i add it i get an error this is wat i have so far Private Sub DataGridView1_CellEndEdit(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellEndEdit If (e.ColumnIndex = 4) Then ' Checking numeric value for Column4 …
there is no real easy way to do it besides re-writing the project
txtTotal.Text = Conver.ToInt32(txtTotal.Text) - txtfoodprice1.Text
Me.DataGridView.Columns(1).DefaultCellStyle.Format = "c"
The End.
xcrunner15