c# - Running Dual GridView Controls to show Summary / Details View -
i've got query display parts serial numbers in 1 column , number of processes went through in other column.
this data dumped gridview control called gvsummary. works ok now.
what i'd add second gridview control called gvdetails next gvsummary, , replace of data in gvsummary control run detail query particular part when clicked.
my plan of attack replace text in serial_number column (column[0]) hyperlink control, navigateurl specifies call getdetails method passing text of serial_number.
var table = getpartsfortimeperiod(); (int = 0; < table.rows.count; i++) { string serialnumber = table.rows[i][0].tostring().trim(); var link = new hyperlink() { id = string.format("lnk{0}", serialnumber.replace(' ', '_')) }; link.text = serialnumber; link.navigateurl = string.format("getdetails(\"{0}\"}", serialnumber); table.rows[i][0] = link; } gridview1.datasource = table; gridview1.databind(); issues:
a hyperlink require page load, , want fill next query gvdetails control.
what right way go this? code winforms, , can't think of way in asp.net.
Comments
Post a Comment