<%@ Page Language="VB" ResponseEncoding="iso-8859-1" Debug="true" %> <%@ Register TagPrefix="Rico" TagName="DemoSettings" Src="settings.ascx" %> <%@ Register TagPrefix="Rico" TagName="DemoMenu" Src="menu.ascx" %> <%@ Register TagPrefix="Rico" TagName="ChkLang" Src="chklang.ascx" %> Rico LiveGrid-Example 7
This example demonstrates a pre-filled grid (same as example 1), except that checkboxes have been placed in the first column. Click on a checkbox - notice that the row is identified in the alert message and that the box stays checked as the grid scrolls. It also demonstrates how the grid can be initialized to start at a specified row (this example skips the first 20 rows). Finally, it also shows how sorting and hide/show can be disabled for individual columns (the first column in this example).

 

<% const numcol=12 dim c as integer dim r as integer for c=1 to numcol response.write("") next %> <% for c=1 to numcol response.write("") next %> <% for r=1 to 100 response.write("") response.write("") response.write("") for c=3 to numcol response.write("") next response.write("") next %>
Column " & c & "
") if r mod 10=0 then response.write("1") else response.write("0") response.write("" & r & "Cell " & r & ":" & c & "