How to set from textbox's value to datagridview's row number
it means if i wrote in textbox "5" than datagridview's number of rows will be 5. in c#
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.

You can set defaults for the a column by the designer
- On you DataGridView -> Click Edit Columns
- Now you should see the Edit Columsn Dialog
- Select the Column you want to set default
- Now at the right side you should the property called DataGridViewCellStyle
- Please click on DataGridViewCellStyle this will show Cell Style Builder Dialog
- Under Data -> Set the NullValue property to 0.0
- Keep on clicking Ok Buttons till you are back to the DataGridView
Hope this helps...
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jay Stewart120 reputationPosted Jun 9, 2017, 8:42 AM EDT