user3493142
user3493142

Reputation: 21

Adding a fixed number of rows in datagridview in c# in the .cs design form

I am trying to create a datagridview with 25 rows containing three columns and next option for going to next records of a local database,containing employee name id.employee and view profile button.but cant add a single row from the tool box..how is it possible to do in the design form?

Upvotes: 2

Views: 5927

Answers (1)

NeverHopeless
NeverHopeless

Reputation: 11233

  1. Drag drop DataGridView control.
  2. In Form_Load event write:

datagridView1.RowCount = 25;

Upvotes: 4

Related Questions