c# - Gridview attributes from code behind -


how can set onrowdatabound method name code behind?

aspx code:

onrowdatabound = "gvresults_rowdatabound" 

how set code behind?

gvresults.attributes["onrowdatabound"] = "gvresults_rowdatabound"; 

does not work.

you have use rowdatabound event handler gridview:

gvresults.rowdatabound += gvresults_rowdatabound; 

Comments

Popular posts from this blog

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c++ - CryptStringToBinary API behavior -