Unbounded Datagrid

F

Fabiano

Please,

how can i create a unbounded datagrid? I need to control programatically the
way it will work, not by a dataset or datatable.

is there a way i can do this? Where can i take a sample, if there's?

Tks in adv.
 
P

Peter Huang

Hi Fabiano,

Currently I am looking for somebody who could help you on it. We will reply
here with more information as soon as possible.
If you have any more concerns on it, please feel free to post here.

Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

Steven Cheng[MSFT]

Hi Fabiano,

As for the unbounded datagrid, here are my suggestions:

The WebForm DataGrid, DataList or Repeater controls are all DataBound
Template controls which will render all its items according to the
DataSource it has been binded. We only set the template (such as
ItemTemplate, AlternatingTemplate, EditTemplate...) . Then at runtime, the
control loopthroug its datasource( DataTable or Array or ...) and generate
the actual html contents. So we must specify a datasource. You may have a
look a the following link for detailed mechanism of DataBound Template
ASP.NET server control:

#Building DataBound Templated Custom ASP.NET Server Controls
http://msdn.microsoft.com/library/en-us/dnaspp/html/databoundtemplatedcontro
ls.asp?frame=true

As my opinion, I think you can implement your requirement via the following
means:
Bound the Template DataBound control with a certain DataSource. For
example, a datatable, then you can programatically generate the datatable
and then bind it at runtime. When you want to change the DataGrid, you
modify the DataTable's records and rebind it to the DataGrid. How do you
think of this?

If you have anything unclear, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 
S

Steven Cheng[MSFT]

Hi Fabiano,

Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If you have anything unclear or if
there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top