Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Table in c# windows form app

Tags:

c#

winforms

I need a table for my Winform app and my question is what is the best control to use for it. In my table i need to:

  1. add columns once the user adds...
  2. the values in the table cells oftenly updates and contain String types and double.

I serached the web for some kind of tamplates for tables or any other examples of designed controls with no luck, i know java and c++ have many of that kinds. If you can recommand me of such sites...

Thanks.

like image 624
Michael A Avatar asked Apr 26 '11 08:04

Michael A


People also ask

What is a table in C?

This article will write the table programs using loops (for, do-while, and while loop) and functions (user-defined and recursion function) in the C programming language. A table (or multiplication table) of numbers is generated by multiplying a constant number with an iterative number from 1 to 10 to get the table.

What is %d in C programming?

In C programming language, %d and %i are format specifiers as where %d specifies the type of variable as decimal and %i specifies the type as integer. In usage terms, there is no difference in printf() function output while printing a number using %d or %i but using scanf the difference occurs.

How do I print a loop table?

Algorithm. Step 1: Enter a number to print table at runtime. Step 2: Read that number from keyboard. Step 3: Using for loop print number*I 10 times. // for(i=1; i<=10; i++) Step 4: Print num*I 10 times where i=0 to 10.


1 Answers

DataGridView should be enough. There's plenty of examples and tutorials, starting with MSDN one through some tips related to the control and finally more complex examples (not necessarily for DGV only) with data binding.

like image 184
k.m Avatar answered Oct 21 '22 22:10

k.m