Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

ASP.NET very urgent question?

Can any one help me understand where the value for the format substring {0} come form, for this particular code peice.

<Columns>

<asp:HyperLinkColumn

HeaderText="Select an Item"

DataNavigateUrlField="IntegerValue"

DataNavigateUrlFormatString="detailspage.aspx?id={0}"

DataTextField="PriceValue"

DataTextFormatString="{0:c}"

Target="_blank"/>

</Columns>

http://msdn2.microsoft.com/en-us/library/system.we...

1 Answer

Relevance
  • Anonymous
    1 decade ago
    Favorite Answer

    It gets the value from the first datagrid column which has an index of 0. If you look at the server side code you'll see that your datagrid gets two columns added to it. The first one is some sort of id of type integer. Once the data is binded to the datagrid you can access it using the column ID eg zero for first one, 1 for the next and so on.

    hope this helps

    Source(s): .net developer
Still have questions? Get your answers by asking now.