c# - How to create this user control? -


I have to develop a small app for which I have to create a user control which is something like a table view.

On form load, the user should be asked about the number of rows required column on the form.

Once the user determines the number of cells, a button in each cell and a text box (grouped together) inside it. Please help me make user control. I am still a new learner thanks!

In the DataGridView the built-in class will be in the .NET Framework with a text box Display a grid that can be edited by a user. To display an image, you will need to get your DataGrade Viewpoint and write all the drawing and handling codes to customize the room. You can see this example how to do it:

Another option would be to use TableLayoutPanel after specifying the number of user rows and columns , You can create TableLayoutPanel and repeat through each cell to add the appropriate control.

There may be only 1 control in each cell so that you have to create two columns to keep a button and text box close to each other.


Comments