A step by step tutorial teaching you how to create your own chat client and chat server easily in C#, for local networks or the Internet.
A C# tutorial showing you how to make use of WMI to extract information on disk drives, such as model, capacity, sectors and serial number.
This tutorial will teach you how to calculate the shipping cost based on the weight, height, length and depth of the box, the distance and the UPS service type.
Creating a Rich Text Editor using JavaScript is easier to do than you might think, thanks to the support of modern browsers; this tutorial will walk you through it.
How to bind a DataGrid to an arrayIt simply shows how to bind a DataGrid to an array using C# code. |
On Sunday, September 5th 2004 at 07:52 AM By Andrew Pociu (View Profile) ![]() ![]() ![]() ![]() (Rated 2.9 with 20 votes) |
||
|
This tutorial provides a simple code on how to bind a DataGrid to an array. Start a new ASP .NET Web Application and on the Web Form drag a DataGrid: ![]() Now go into the code of the ASP .NET Web Application (WebForm1.aspx.cs) and replace PageLoad() with this one:
You can now compile and watch the result: |
|||
Digg It!
Del.icio.us
Reddit
StumbleIt
Newsvine
Furl
BlinkList
|
|||
|
|||
Current CommentsThanks - this is what I was looking for!
i believe too and thanks for continued support
Excellent for the learner. I have solved my problem just following the sequence of steps to configure IIS for .Net
Thanks,
Thanks, I can now prepare my own tax!!
Thanks. but how to bind datagrid to two dimensional array.
Thanks in advance
Thanks. but how to bind datagrid to two dimensional array.and how to change the header
Thanks in advance
How to change the header? Using the HeaderText attribute of the <asp:BoundColumn> tag as seen in this tutorial: <a href="http://www.geekpedia.com/tutorial97_Basics-of-using-DataGrid.html">Basics of using DataGrid</a>.
Hi,
can anyone tell me how to add an array to the chat room.... or a code to allowed more than one person to chat from different location
How do you do this with a datagrid on a Windows form? When I do it I get the lenght of the string displayed in the datagrid, not the actual string text.
How do you do this with a datagrid on a Windows form? When I do it I get the lenght of the string displayed in the datagrid, not the actual string text.
having trouble implementing with jagged arrays....
Curious about jagged arrays also. How can you bind to an array of arrays or two-dimentional arrays? Whats does the aspx code look like? How do we access fields using templates?
Related Tutorials
Related Source Code
ASP.NET Job Search