Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27017

VB 2010 Express - DataGridView Add rows help

$
0
0
Hello to all,

I need help, how should I make notification in code, that result will be (MsgBox.Show("You must fill less then one of TextBox")), reason is, that user will not be able adding empty rows by clicking on button1.

Realy thanks to all for help.

daniel

Code:

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

  If ...

        Me.DataGridView1.Rows.Add(Me.TextZapSt.Text, Me.TextOpis.Text, Me.TextKolicina.Text, Me.TextCena.Text, Me.TextVnos.Text)
        Me.TextZapSt.Text = ""
        Me.TextOpis.Text = ""
        Me.TextKolicina.Text = ""
        Me.TextCena.Text = ""
        Me.TextVnos.Text = ""


Viewing all articles
Browse latest Browse all 27017

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>