0

I'm using visual studio C# . I want to add rows in a data grid (label and a textbox next to it), and the numbers of rows should varies, for example it's 5, 10 or 1000... . At the end I need to grab the values of those textboxes. Any idea of how the code should be?

Salwa Najm
  • 47
  • 5
  • 2
    Your question is too broad. Find a data grid tutorial and follow that. If you get stuck and have a specific question then come back here. – Ergwun Dec 11 '14 at 10:27
  • Avoid posting questions where you basically ask everyone to code a solution for you. Instead try something on your own, read tutorials first and then post questions about specific issues here. – Xtr Dec 11 '14 at 10:32
  • It's just that I'm new to C# and I have a project which i must get it done by tomorrow, I used to work with JAVA. I'm searching for the right tutorial.. – Salwa Najm Dec 11 '14 at 10:45
  • That is exactly what SO is NOT there for, this is not a "do my homework for me" site. – Xtr Dec 11 '14 at 10:52

2 Answers2

0

http://www.dotnetperls.com/datagridview-tutorial Read This. Code. Then Ask ! That would certainly be much more helpful to you too.

Mohit Arora
  • 337
  • 5
  • 19
0

Thanks Everyone, It seems that the real question is how to deal with WPF DataGrid, I searched it online and found many solutions like : programmatically add column & rows to WPF Datagrid

Thanks.

Community
  • 1
  • 1
Salwa Najm
  • 47
  • 5