/
ivan
/
ModMas
Обзор
Документация
Войти
/
ivan
/
ModMas
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
ModuleMaster/usercontrols/scrollgrid.ascx.vb
52 строки
1 KB
i.krivokon
Initial commit
13 мар 2026, 13:49
13 мар 2026, 13:49
00d9fb6
Код
Авторство
О чём код?
Partial Class UserControls_scrollGrid Inherits System.Web.UI.UserControl Public ReadOnly Property Grid As GridView Get Return gvTheGrid End Get End Property Public Property ViewHeight As Integer Set(value As Integer) table_container.Style.Add("height", value.ToString & "px") End Set Get Try Return Convert.ToInt16(table_container.Style("height")) Catch ex As Exception Return -1 End Try End Get End Property Public Property AllowPaging As Boolean Set(value As Boolean) gvTheGrid.AllowPaging = value End Set Get Return gvTheGrid.AllowPaging End Get End Property Public Property AllowSorting As Boolean Set(value As Boolean) gvTheGrid.AllowSorting = value End Set Get Return gvTheGrid.AllowSorting End Get End Property Protected Sub Page_PreRender(sender As Object, e As EventArgs) Handles Me.PreRender gvTheGrid.UseAccessibleHeader = True gvTheGrid.HeaderRow.TableSection = TableRowSection.TableHeader End Sub Public Event RowCommand(sender As Object, e As GridViewCommandEventArgs) Protected Sub gvTheGrid_RowCommand(sender As Object, e As GridViewCommandEventArgs) Handles gvTheGrid.RowCommand RaiseEvent RowCommand(sender, e) End Sub End Class