Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Adding rows programmatically to GridView

Reply
Thread Tools

Adding rows programmatically to GridView

 
 
Matt Adamson
Guest
Posts: n/a
 
      03-15-2007
Guys,

Is there any way to add a row programmatically?

What workarounds would you recommend if this isn't possible? This seems a
big limitatiion of the control as the Win Forms 2.0 DataGridView control
seems to support this feature.

Cheers

Matt


 
Reply With Quote
 
 
 
 
Teemu Keiski
Guest
Posts: n/a
 
      04-09-2007
It is possible. For example my sorting sample uses that.

http://aspadvice.com/blogs/joteke/ar.../11/15130.aspx

Basically just add GridViewRow at rendering time to the location where you
want ti to be.


--
Teemu Keiski
AspInsider, ASP.NET MVP
http://blogs.aspadvice.com/joteke
http://teemukeiski.net


"Matt Adamson" <> wrote in message
news:...
> Guys,
>
> Is there any way to add a row programmatically?
>
> What workarounds would you recommend if this isn't possible? This seems a
> big limitatiion of the control as the Win Forms 2.0 DataGridView control
> seems to support this feature.
>
> Cheers
>
> Matt
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to programmatically retrieve all rows and cells in Gridview JB ASP .Net 1 06-15-2010 10:23 PM
Hide the Gridview Rows and Header rows in Button click VijayRama ASP .Net 2 10-12-2009 01:58 PM
Adding rows to gridview =?Utf-8?B?Vk1J?= ASP .Net 5 03-06-2007 02:00 PM
adding rows in GridView Loading name... ASP .Net 1 08-25-2006 10:53 AM
adding totals in gridview rows John ASP .Net 0 06-09-2006 01:13 PM



Advertisments