[c#]代码库
<x:Grid ID="YZGL" PageSize="1000" ShowBorder="false" ShowHeader="false" runat="server"
DataKeyNames="ID,sort_name" AutoScroll="true" AutoHeight="true" EnableCheckBoxSelect="false"
EnableColumnLines="true" EnableTextSelection="true" EnableRowNumber="true" EnableRowClickEvent="true"
OnRowClick="YZGL_RowClick">
<Columns>
<x:BoundField Width="300px" DataField="sort_name" DataSimulateTreeLevelField="TreeLevel"
DataFormatString="{0}" HeaderText="列表" ExpandUnusedSpace="True" />
</Columns>
</x:Grid>
protected void YZGL_RowClick(object sender, FineUI.GridRowClickEventArgs e)
{
FactorName = finaldata.Rows[e.RowIndex]["sort_name"].ToString();
FactorID = finaldata.Rows[e.RowIndex]["ID"].ToString();
FactorBtnAdd.OnClientClick = Main_FactorAdd.GetShowReference("MainFactorAdd.aspx?ID=" + FactorID + "&type=1&ProductID=" + ProductID + "") + "return false;";
FactorBtnEdit.OnClientClick = Main_FactorEdit.GetShowReference("MainFactorAdd.aspx?ID=" + FactorID + "&type=0&ProductID=" + ProductID + "") + "return false;";
}