在Delphi 7 IDE中,线条是否需要给定长度?在我正在使用的一些Delphi代码中看到一条灰色线条,它看起来就像它前面的行结束一样.
这是我的要求:
我的问题:
笔记:
码:
protected void addAppButton_Click(object sender, EventArgs e)
{
DropDownList appList = (DropDownList)newEntryFV.FindControl("appList");
TextBox profileTextBox = (TextBox)newEntryFV.FindControl("profileTextBox");
addAppsToTable(appList.SelectedValue.ToString(), profileTextBox.Text.ToString());
}
private void addAppsToTable(string appName, string profileName)
{
Table appsTable = (Table)newEntryFV.FindControl("appTable");
TableRow newRow = new TableRow();
TableCell appNameCell = new TableCell();
TableCell profileCell = new TableCell();
appNameCell.Text = appName;
profileCell.Text = profileName;
newRow.Cells.Add(appNameCell);
newRow.Cells.Add(profileCell);
appsTable.Rows.Add(newRow);
}
Run Code Online (Sandbox Code Playgroud)
解决我的问题的代码:
[Serializable]
public class securityApps
{
public string secAppID { get; set; }
public string secAppName { …Run Code Online (Sandbox Code Playgroud)