views:

914

answers:

2

I have a gridview which is databound, I want to dynamically add a row with data that I define and away from the databound data, how can I do it?

A: 

For that, you'll have to add an item in your original data source only, coz there's no other way of doing it. To the new item that you added to your data source, you can then add the data you want.

Kirtan
+1  A: 

On Client Side using DOM or jQuery to add new row.

On Server Side You must inherit GridView control and override Render function to modify output HTML.

But I don't suggest you to this. Because It break beatiful of OOP programming and It hard to debug when error occur.

Soul_Master