R
Raghu Raman
Hi
i just want to show 2 fields in the datagrid one is the customerid &
other one is just the postal code field.I want to display the customer
id as first column and the postalcode is to be multiplied(calculated
column)by 2 as my second column while displaying.
my datagrid settings are
-------
<Columns><asp:BoundColumn DataField="customerid"
HeaderText="customerId"></asp:BoundColumn>
<asp:BoundColumn DataField="postalcode"
HeaderText="postalcode"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Values calculated">
<ItemTemplate><%#
Docals(DataBinder.Eval(Container.DataItem,"postalcode"))%>
</ItemTemplate> </asp:TemplateColumn></Columns>
-------
my c#.net procedure (for Docals)
-------------------------
public string Docals(string postalcode)
{return Convert.ToString(Convert.ToDouble(postalcode) * 2);
}
----------------------Error--
CS1502: The best overloaded method match for
'Endavour.Hiddencols_.Docals(string)' has some invalid arguments
*******Pls tell me where i went wrong.
Regards & Thanks
Raghu
i just want to show 2 fields in the datagrid one is the customerid &
other one is just the postal code field.I want to display the customer
id as first column and the postalcode is to be multiplied(calculated
column)by 2 as my second column while displaying.
my datagrid settings are
-------
<Columns><asp:BoundColumn DataField="customerid"
HeaderText="customerId"></asp:BoundColumn>
<asp:BoundColumn DataField="postalcode"
HeaderText="postalcode"></asp:BoundColumn>
<asp:TemplateColumn HeaderText="Values calculated">
<ItemTemplate><%#
Docals(DataBinder.Eval(Container.DataItem,"postalcode"))%>
</ItemTemplate> </asp:TemplateColumn></Columns>
-------
my c#.net procedure (for Docals)
-------------------------
public string Docals(string postalcode)
{return Convert.ToString(Convert.ToDouble(postalcode) * 2);
}
----------------------Error--
CS1502: The best overloaded method match for
'Endavour.Hiddencols_.Docals(string)' has some invalid arguments
*******Pls tell me where i went wrong.
Regards & Thanks
Raghu