Ask a Question related to ASP.NET Data Grid Control, Design and Development.
-
Steve Bishop #1
MXDataGrid Sorting Probelms
My mxDataGrid doesn't sort, even if I set the properties to sort. When I
drag a SQL table onto my form, it works fine, but I'm working with ODBC
databases and it's not working. Paging works good, but not sorting. Can
someone put me in the right direction? Thanks.
<%@ Page Language="vb" %>
<%@ Register TagPrefix="wmx"
Namespace="Microsoft.Matrix.Framework.Web.UI"
Assembly="Microsoft.Matrix.Framework, Version=0.6.0.0, Culture=neutral,
PublicKeyToken=6f763c9966660626" %>
<%@ import Namespace="System.Data" %>
<%@ import Namespace="Microsoft.Data.ODBC" %>
<script runat="server">
Sub Page_Load(source As Object, E As EventArgs)
Dim cn as OdbcConnection
cn = New
OdbcConnection("dsn=SOTAMAS90AUTO;uid=sys;pwd=Rang ers;")
Dim mystring As String = "Select * FROM AR1_CustomerMaster"
Dim ObjAdapter As New OdbcDataAdapter(mystring, cn)
Dim ObjDataSet As New DataSet()
ObjAdapter.Fill(objDataSet, "dtAR1")
dgAR1.DataSource = objDataSet.Tables("dtAR1")
dgAR1.DataBind()
End Sub
</script>
<html>
<head>
</head>
<body>
<h3><font color="#000040">Bring in AR1 </font>
</h3>
<p>
</p>
<form runat="server">
<wmx:MxDataGrid id="dgAR1" runat="server" Width="700px"
AutoGenerateFields="False" Height="50px" HorizontalAlign="Center"
ForeColor="Navy" CellPadding="5" ShowFooter="True" BackColor="AliceBlue"
AllowSorting="True" AllowPaging="True">
<AlternatingItemStyle forecolor="White"
backcolor="Navy"></AlternatingItemStyle>
<FooterStyle backcolor="Navy"></FooterStyle>
<HeaderStyle forecolor="White"
backcolor="Navy"></HeaderStyle>
<Fields>
<wmx:BoundField DataField="CustomerNumber"
HeaderText="Customer No."></wmx:BoundField>
<wmx:BoundField DataField="CustomerName"
HeaderText="Customer Name"></wmx:BoundField>
<wmx:BoundField DataField="PhoneNumber"
HeaderText="Phone"></wmx:BoundField>
<wmx:BoundField DataField="EmailAddress"
HeaderText="Email"></wmx:BoundField>
</Fields>
</wmx:MxDataGrid>
<!-- Insert content here -->
</form>
</body>
</html>
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Steve Bishop Guest
-
Sorting array vs sorting paginated array
....pulling in a long list of photos in a gallery, and I have a sort function working within the pages of data fine. I need to bring it back out of... -
MXDatagrid paging problem
I am using MXDatagrid with paging. I set allowpaging=True in property. But paging is working for only 10 pages. if i clik 12 or 13th pages it... -
Probelms viewing webpage
Hello All, I successfully created a database connect between SQL server and DW, the problem I'm having is that I'm not able to view the page on... -
NEWBIE - Column Totals in Footer of mxDataGrid
Greetings, How can I display the total of one or several columns in the footer of an MxDataGrid? If there is a link to a tutorial or article,... -
Probelms with apt-proxy
Last night I installed apt-proxy on my Woody system. It doesn't work. I have searched the debian-user archives, the apt-proxy-user archives, and...



Reply With Quote

