Click here to Skip to main content
15,887,596 members

Comments by zp bappi (Top 1 by date)

zp bappi 11-Nov-13 1:52am View    
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.