在VB.NET中显示组件而不是datagridview [英] Display components in VB.NET not datagridview

查看:109
本文介绍了在VB.NET中显示组件而不是datagridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hii frds....i finished some forms in my project such as registration form and attendance form. Display control i know just datagridview. To display the attendance detail of overall, which control i used? To display staff profile what kind of components i used for display their name ,address,ph no..pls tell me about that are display attendance details and profile details...pls help me..



another one is ..in attendnce form ,how to generate serial numbers in first cell of datagridview...pls guide me





我尝试过的事情:



< prei在我的项目中填写了一些表格,如报名表和出席表格。显示控件我只知道datagridview。要显示整体的考勤细节,我使用哪种控件?为了显示员工档案,我用什么样的组合来显示他们的名字,地址,电话号码,请告诉我有关显示出勤详情和个人资料详情...





如何在出勤形式的datagridview单元格中生成序列号..请帮助我..



What I have tried:

<prei finished some forms in my project such as registration form and attendance form. Display control i know just datagridview. To display the attendance detail of overall, which control i used? To display staff profile what kind of combonents i used for display their name ,address,ph no..pls tell me about that are display attendance details and profile details...


how to generate serial numbers in datagridview cell in attendance form..pls help me..

推荐答案

如何生成序列号在datagridview单元格中出席表格..请帮助我..





您可以使用此代码在datagridview中生成序列号> >



how to generate serial numbers in datagridview cell in attendance form..pls help me..

hi
you can use this code for generate serial number in datagridview>>

Private Sub RenumberRows()
       For Each r As DataGridViewRow In DataGridView1.Rows
           With r
               If r.Index < DataGridView1.NewRowIndex Then
                   .Cells(0).Value = r.Index + 1
               End If
           End With
       Next
   End Sub
   Private Sub DataGridView1_RowsRemoved(sender As Object, e As DataGridViewRowsRemovedEventArgs) Handles DataGridView1.RowsRemoved
       RenumberRows()
   End Sub
   Private Sub DataGridView1_RowsAdded(sender As Object, e As DataGridViewRowsAddedEventArgs) Handles DataGridView1.RowsAdded
       RenumberRows()

   End Sub


这篇关于在VB.NET中显示组件而不是datagridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆