<! --
Function setvalues (object)
{
Document. All. tblhisname. innertext = object. cells [10]. innertext;
Document. All. labhisid. innertext = object. cells [11]. innertext;
Document. All. tblhislevel. innertext = object. cells [1]. innertext;
Document. All. tblareaname. innertext = object. cells [8]. innertext;
Document. All. tblarea. innertext = object. cells [9]. innertext;
Document. All. tblmzl. innertext = object. cells [2]. innertext;
Document. All. tblbcs. innertext = object. cells [3]. innertext;
Document. All. tbllxr. innertext = object. cells [5]. innertext;
Document. All. tblphone. innertext = object. cells [4]. innertext;
Document. All. tbladdress. innertext = object. cells [6]. innertext;
Document. All. tbldemo. innertext = object. cells [7]. innertext;
}
// -->
</SCRIPT>
Private void maid (Object sender, system. Web. UI. webcontrols. datagriditemeventargs E)
{
If (E. Item. itemtype = listitemtype. Item | E. Item. itemtype = listitemtype. alternatingitem)
{
E. Item. Attributes. Add ("onclick", "setvalues (this)"); // put the data of the current row in the DataGrid into text.
}
-- It's not easy or I finally concluded it. Well, there's no white flowers in a few hours.