Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: MultiSelection DataGrid (using CheckBox)


Message #1 by "Israel Levy" <Israel-l@a...> on Sun, 15 Dec 2002 13:10:03
Hello WROX

I'm fail in trying to create a Multiselection DataGrid (using CheckBox).

I joined the 2 properties to the grid: 
AllowMultiSelect="true" & AllowMultiSelectFooter="true">

and also the following line :
<%@ Register Namespace="Nerio" Assembly="DataGrid" %>

ButI get a parser error on both of the properties (which means they are 
not recognized...)

I joined my short code below

what am I doing wrong?

Thanks


<%@ Page language="c#" Codebehind="Basket.aspx.cs" AutoEventWireup="false" 
Inherits="Nerio.Basket" %>
<%@ Register Namespace="Nerio" Assembly="DataGrid" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>Basket</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio 
7.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" 
content="http://schemas.microsoft.com/intellisense/ie5">
	</HEAD>
	<body MS_POSITIONING="GridLayout">
		<form id="Basket" method="post" runat="server">
			<asp:DataGrid id="DataGrid1" style="Z-INDEX: 101; 
LEFT: 120px; POSITION: absolute; TOP: 82px" runat="server"
			 AutoGenerateColumns="False"
			 AllowMultiSelect="true"
			 AllowMultiSelectFooter="true">
				<Columns>
					<asp:BoundColumn 
DataField="UnitPrice" ReadOnly="True" HeaderText="מחיר">
</asp:BoundColumn>
					<asp:BoundColumn 
DataField="Suplier" ReadOnly="True" HeaderText="ספק\יצרן
"></asp:BoundColumn>
					<asp:BoundColumn 
DataField="ProductName" ReadOnly="True" HeaderText="תאור
"></asp:BoundColumn>
				</Columns>
			</asp:DataGrid>
		</form>
	</body>
</HTML>

  Return to Index