Display different content based on the selection is the most common UI function, which is almost used in any system. Keyword matching is required here. The interface usually shows strings. If string matching is used, the efficiency is very low. Therefore, we recommend using integer values for matching:
Protected void aspxnavbar2_headerclick (Object source, devexpress. Web. aspxnavbar. navbargroupcanceleventargs E)
{
Int IIi = E. Group. Index; // unique identifier. This example is numbered from 0.
// If (E. Group. Text. Trim () = "111 boost Station") // not good.
If (III = 0) // good.
{
// bind 111 of Data
This. gridview1_tagname.caption = "111 discrete streaming data";
This. gridview1_tagname.datasource = syz. get_discretetag (connectionstring, "kbsyz1% Yx");
This. gridview1_tagname.databind ();
This. button_realcurve.enabled = false;
This. button_historycurve.enabled = false;
}< br> If (III = 1)
{< br> // bind 222 of Data
This. gridview1_tagname.caption = "222 discrete data of the boost Station";
This. gridview1_tagname.datasource = syz. get_discretetag (connectionstring, "gysyz1% Yx");
This. gridview1_tagname.databind ();
This. button_realcurve.enabled = false;
This. button_historycurve.enabled = false;
}