"adrin" <ad***@adrin.adrinwrote in message
news:58**************************@news.chello.pl.. .
hello,
i am a c# newbie, and i'm writing an application that requires to show
some numerical data in a table(it is a distance matrix). i wonder if
there is any component that serves such purpose... ? i would like it to
be editable, able to store integers or strings and not bloated :-)
thanks in advance for your help
There is a Table Control in ASP.Net that you can do this with, where you
build the table dynamically and add controls to the table.
For a Windows desktop application, you may have to resort to using a
DataGridView control, binding an ArrayList or Collection containing accessor
objects that will hold your data fields so that they can be edited in the
DataGridView.
http://www.samspublishing.com/articl...01373&seqNum=6
<http://www.c-sharpcorner.com/UploadFile/rafidkhalidabdullah/CreatingStronglyTypedCustomCollectionsinCS11302005 020315AM/CreatingStronglyTypedCustomCollectionsinCS.aspx>
You can walk the collection and save the objects to a database or you can
read a table from a database populating the collection, binding it to the
DataGridView, so that objects can be edited.
However, here is the class 101 that can get you up to speed with C# on
something's using C#.NET
http://msdn.microsoft.com/vstudio/ex.../learningpath/
You also have Gridview and Datalist controls in ASP.NET too.