Click here to Skip to main content
14,327,707 members
Rate this:
Please Sign up or sign in to vote.
See more:
hello,
I have a gridview with some rows bound previously. But again I want to add some rows from an other gridview dynamically. Some one please help to do this...
Thank You all
Posted
Rate this:
Please Sign up or sign in to vote.

Solution 1

you can check this.
   
Rate this:
Please Sign up or sign in to vote.

Solution 2

Try this:
myGrid.Rows.Add(col1Value, col2Value, col3Value,...);
   
Comments
Shibasankar 11-Nov-13 1:45am
   
Hello,
It's coming error near ".Add"....
I am creating web applications.
Thank u for your response.
zp bappi 11-Nov-13 1:52am
   
If you have other databound rows, you must databind the gridview first before calling myGrid.Rows.Add(...) method. I guess, you are calling this method on a post back event (probably on a button click). In that case, first set the gridview datasource and databind the gridview. Then add your custom rows.
Rate this:
Please Sign up or sign in to vote.

Solution 3

   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100