0
Ich weiß nicht, wie eine Variable (newvalue) in die Spalte der Tabelle Gridview zuzuordnen, ist: <asp:BoundField DataField="convertedValue" DataFormatString="{0:n2}" HeaderText="Value in" ReadOnly="True" SortExpression="convertedValue" />
Ich möchte eine Variable in die Spalte einer Gridview von ASP.Net zuweisen
und den Code zur Verfügung gestellt ist:
foreach (DataRow row in dtSecurityHolding.Rows){
int shares = myHKeInvestCode.getColumnIndexByName(gvSecurityHolding, "shares");
int price = myHKeInvestCode.getColumnIndexByName(gvSecurityHolding, "price");
int newvalue = myHKeInvestCode.getColumnIndexByName(gvSecurityHolding, "value");
newvalue = shares * price;
// Add your code here!
Danke !!