dotSITE
Шаблоны проектирования Work in Murano Software. Вопросы/Ответы
новости материалы решения форумы группы настройки/о проекте

Автор: Andrew
Тема: Re: HyperLinks in DataGrid
Дата: 6/15/2001 8:38:00 PM
Try this

Remarks
Use the HyperLinkColumn column type in a DataGrid control to create a hyperlink for each row in the DataGrid control. Set the Text property to specify the caption text for the hyperlink. To specify the URL to navigate to when the hyperlink is clicked, set the NavigateUrl property.

Note[note] If you set the Text and NavigateUrl properties, all hyperlinks in the column will share the same caption and URL.

You can also bind the text caption and URL of the hyperlinks in the HyperLinkColumn column to a field in a data source instead of setting the Text and NavigateUrl properties. This allows you to display a different caption and have a separate URL for each hyperlink in the column.

Use the DataTextField property to specify a field in a data source to bind to the text caption of the hyperlinks in the column.

Note[note] The DataTextField and Text properties cannot both be set at the same time. If both properties are set, the DataTextField property takes precedence.

Specify the field to bind to the URL of the hyperlink by setting the DataNavigateUrlField property.

Note[note] The DataNavigateUrlField and NavigateUrl properties cannot both be set at the same time. If both properties are set, the DataNavigateUrlField property takes precedence.

The Target property allows you to specify the window to frame to display the Web page content linked to when the hyperlink is clicked.

When using data binding, you can format the text caption and URL of the hyperlink by setting the DataTextField and DataNavigateUrlFormatString property, respectively.






 VB.NET -- Программирование на VB.NET
 HyperLinks in DataGrid Leonid Gileles    6/15/2001 2:38:00 PM
 Re: HyperLinks in DataGrid Andrew    6/15/2001 8:38:00 PM


Контакт Реклама на сайте Спонсорам Веб мастерам

Лицензионное соглашение - © 2000-2012 dotSITE
Хостинг .NET предоставлен PARKING.RU
Поддержку сайта осуществляет Murano Software Inc., Offshore software development