Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > BC30451: Name 'BindDataGrid' is not declared.

Reply
Thread Tools

BC30451: Name 'BindDataGrid' is not declared.

 
 
TJS
Guest
Posts: n/a
 
      11-22-2003
trying to allow sorting in a datagrid
I don't understand error message - can u help ???



sql:
=====
SelectCommand = "SELECT * FROM tblA WHERE id = '" & vid & "'
order by " & strSortField


grid control:
===============

<asp:datagrid id="Grid" style="Z-INDEX: 101" runat="server"
AutoGenerateColumns="False" CellPadding="4" BackColor="White"
OnPageIndexChanged="DataGrid_Page" AllowPaging="True" ShowFooter="True"
HorizontalAlign="Center" BorderStyle="None" BorderWidth="1px"
BorderColor="Silver" DataKeyField="id" AllowSorting="True"
OnSortCommand="Grid_SortComand" />

sub:
==========

Sub Grid_SortComand(Sender As Object, E As DataGridSortCommandEventArgs)
BindDataGrid(e.SortExpression)
End Sub

error msg:
===============
Compiler Error Message: BC30451: Name 'BindDataGrid' is not declared.


 
Reply With Quote
 
 
 
 
Alvin Bruney
Guest
Posts: n/a
 
      11-23-2003
I guess i am asking the same question as the compiler. What is binddatagrid?
Is this defined somewhere? what does it do. To sort you only need to set the
sort expression to a dataview object and then bind that object to the
datagrid. Is that what your binddatagrid does?
It's complaining because it doesn't see a
public void BindDataGrid(string sort) method declared anywhere

hope this helps you
--


-----------
Got TidBits?
Get it here: www.networkip.net/tidbits
"TJS" <(E-Mail Removed)> wrote in message
news:e##O#(E-Mail Removed)...
> trying to allow sorting in a datagrid
> I don't understand error message - can u help ???
>
>
>
> sql:
> =====
> SelectCommand = "SELECT * FROM tblA WHERE id = '" & vid & "'
> order by " & strSortField
>
>
> grid control:
> ===============
>
> <asp:datagrid id="Grid" style="Z-INDEX: 101" runat="server"
> AutoGenerateColumns="False" CellPadding="4" BackColor="White"
> OnPageIndexChanged="DataGrid_Page" AllowPaging="True" ShowFooter="True"
> HorizontalAlign="Center" BorderStyle="None" BorderWidth="1px"
> BorderColor="Silver" DataKeyField="id" AllowSorting="True"
> OnSortCommand="Grid_SortComand" />
>
> sub:
> ==========
>
> Sub Grid_SortComand(Sender As Object, E As

DataGridSortCommandEventArgs)
> BindDataGrid(e.SortExpression)
> End Sub
>
> error msg:
> ===============
> Compiler Error Message: BC30451: Name 'BindDataGrid' is not declared.
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
adding a variable name to a hash to name is part of the variable name Bobby Chamness Perl 2 04-22-2007 09:54 PM
print("my name is {name}, and {age}-year old {gender}", name, age, gender); =?iso-8859-1?B?bW9vcJk=?= Java 7 01-02-2006 04:39 PM
IE name="name" & form.name property bug Java script Dude Javascript 5 06-30-2004 03:07 AM
name = name.substring(0, name.lastIndexOf('.')); Help please Jack-2 Javascript 3 12-24-2003 04:39 PM
Re: Urgent! how to get object name, method name and attribute name based on the strings? ding feng C++ 2 06-25-2003 01:18 PM



Advertisments