Manipulating individual rows of a datagrid

Posted by pfranchise on Stack Overflow See other posts from Stack Overflow or by pfranchise
Published on 2010-06-09T03:45:51Z Indexed on 2010/06/09 3:52 UTC
Read the original article Hit count: 221

Filed under:
|
|
|

Hey, recently I started working on a webpage that has a datagrid. I understand how to add datasources and that sort of thing, or at least I am starting to get it. But my question is about manipulating individual rows or cells. Is that only possible during the databind event handler, that is the only place I have been able to do it so far. I am sure there is a more abstract way of doing the things I want to do, but there are times where I just want to say Datagrid.add(row). I mean, if the datagrid is made up of a certain object type, can I make a new object of that type and just chuck it on the end? I am still new to this stuff, so perhaps what I want to do would defeat the purpose of this added abstraction, but figured I would ask around.

Thanks for any advice, tips, or tricks people feel like sharing.

Edit: for clarification I am using c#, entity framework, asp.net, and an SQL database.

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET