Re: bind data to gridview using custom data class?
- From: Otis Mukinfus <phony@xxxxxxxxxxxxxxxx>
- Date: Tue, 17 Oct 2006 17:23:02 -0500
On Tue, 17 Oct 2006 19:44:19 +0200, "Cor Ligthert [MVP]"
<notmyfirstname@xxxxxxxxx> wrote:
Otis,
It was just in the style of your question.
I do not want to use
Did my reply sound rude, than I succeeded in what I wanted to show you.
Cor
"Otis Mukinfus" <phony@xxxxxxxxxxxxxxxx> schreef in bericht
news:pld9j2pkgdusetgu0mnl847q76auq8baku@xxxxxxxxxx
On Tue, 17 Oct 2006 06:24:32 +0200, "Cor Ligthert [MVP]"
<notmyfirstname@xxxxxxxxx> wrote:
VineetBatta,Cor,
If you want to use the arraylist instead from a normal performing solution
without troubles, than why are you asking for help to us.
Do you think that I want my name with a non good solution on internet?
It sounds for me the same as I want to increase a number but I want to use
the divide operator.
Cor
"vineetbatta" <vineetbatta@xxxxxxxxxxxxxxxxxxxxxxxxx> schreef in bericht
news:06355C9
5-7AD9-4628-9D0F-F80CD9704F17@xxxxxxxxxxxxxxxx
I have Custom Data class which stores data about single customer and then
i
store that customer objects in arraylist as shown below.
Customer custdata = null; // Custom Data class for 1 customer data.
ArrayList ar = new ArrayList(); // To store more than one
customer
object.
for (int x = 0; x < 30; x++)
{
custdata = new Customer();
custdata.CustomerID = 1234 + x;
custdata.CustomerName = "Name" + x.ToString();
custdata.CustomerLocation = "UK " + x.ToString();
custdata.CustomerType = x.ToString();
ar.Add(custdata);
}
grid.; /// FEW Steps are missing and not sure to make it compatable to
Grid.
grid.DataBind();
Now i want to bind data to gridView control, just like as we do if it
was
Datatable.
Is there any simple conversion possible?
I do not want to use DataSet or DataTable but collection of Customer
Objects
in Arraylist.
Thanks in advance.
-Vineet
Perhaps you should also read the book mentioned in my answer to Vineet's
post.
Your post, besides being aggressive and rude, sounds as though you missed
that
particular part of learning about data binding.
Good luck with your project,
Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
The original post was not mine, so you originally did not answer my question.
However it's interesting that you admit your intention was to be rude. Not very
good behavior for a MVP my friend.
Good luck with your project,
Otis Mukinfus
http://www.arltex.com
http://www.tomchilders.com
.
- References:
- Re: bind data to gridview using custom data class?
- From: Cor Ligthert [MVP]
- Re: bind data to gridview using custom data class?
- From: Otis Mukinfus
- Re: bind data to gridview using custom data class?
- From: Cor Ligthert [MVP]
- Re: bind data to gridview using custom data class?
- Prev by Date: Re: Problems connecting to Oracle 9i database with Oracle 10g Client and Win XP x64
- Next by Date: Re: How to add a column to the first position
- Previous by thread: Re: bind data to gridview using custom data class?
- Next by thread: Re: bind data to gridview using custom data class?
- Index(es):
Relevant Pages
|