Click here to Skip to main content
14,691,039 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

you can check this.
   
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.

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




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900