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

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -