![]() ![]() ![]() MessageBox.Show("Failed to load customer data. ' We are only showing one country hence no need to view this columnĭt.Columns("Country").ColumnMapping = MappingType.Hidden ' No need to show primary key to operatorĭt.Columns("Identifier").ColumnMapping = MappingType.Hidden Here my dgv_fill method Private Sub FILL_DGVOrder()Ĭmd = New SqlCommand("SELECT dish_name,qty,cost FROM k_item WHERE kot_id ='" & txt_kbno.Text & "'", cn)ĭim row() As String = ) Plz provide a code which on adding a new row in datagridview srno column should be incremented While debugging i see the row index value as 0 so its not running ! Me.DGV.Rows(e.RowIndex + i).Cells(0).Value = (e.RowIndex + i).ToStringīut on runtme appear as error as value is zero negetaive or out of bound I have applied a code as Private Sub DGV_RowsAdded(ByVal sender As Object, ByVal e As ) Handles DGV.RowsAdded
0 Comments
Leave a Reply. |