Ask a Question related to ASP.NET General, Design and Development.
-
Andreas Klemt #1
HowTo Bind a New Collection to my DataGrid? Please take a look to my little code...Thanks!!
Hello,
I have this
Public Structure strucUser
Dim userIDAs Integer
Dim firstnameAs String
Dim lastname As String
End Structure
Dim collectUser As New Collection
Dim strucUser As strucUser
strucUser .userIDAs = rateID
strucUser .firstnameAs = "Peter"
strucUser .lastname = "Bond"
collectUser .Add(strucUser )
myDatagrid.DataSource = collectRate <<<---- ERROR !!!
myDatagrid.DataBind()
Error Message:
DataGrid with id '' could not automatically generate any columns from the
selected data source
What is wrong?
Thanks for any help,
Andreas
Andreas Klemt Guest
-
Howto bind CheckBox to the datagrid/ Then update the database field when the checkbox is clicked.
I am trying to update the database field when the checkbox is clicked. I am trying to modified the following solution but.. got stuck on the... -
custom usercontrol inside of datagrid - loses its state/viewstate on re-bind/postback of the datagrid
I have a simple usercontrol, a datepicker which contains 3 dropdownlist , it resides inside a datagrid column and i set the selecteddate property of... -
How do I dynamically bind a textbox into a grid field in ASP.NET using only the code behind?
I am trying to take dynamically generated datagrid that is bound to a data source and make one of the fields on the grid into an editable textbox... -
Bind the DataGrid..?
Hi all, How can I get data to show in a datagrid? This is what I have tested: =============================== Dim ConnStr As String ConnStr =... -
HowTo export the VisualStudio Project Code to HTML Viewable like IBUYPORTAL
Hello, can I export my code in VisualStudio to HTML like IBUYPORTAL? Thanks, Andreas -
Natty Gur #2
Re: HowTo Bind a New Collection to my DataGrid? Please take a look to my little code...Thanks!!
Hi,
1) where collectRate come from ?
2)
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest
-
Andreas Klemt #3
Re: HowTo Bind a New Collection to my DataGrid? Please take a look to my little code...Thanks!!
Hello Natty,
sorry, this was collectUser
But it still doesn't work.
Can you help me?
Andreas
"Natty Gur" <natty@dao2com.com> schrieb im Newsbeitrag
news:uf9xu3hSDHA.1948@TK2MSFTNGP12.phx.gbl...> Hi,
>
> 1) where collectRate come from ?
> 2)
>
> Natty Gur, CTO
> Dao2Com Ltd.
> 28th Baruch Hirsch st. Bnei-Brak
> Israel , 51114
>
> Phone Numbers:
> Office: +972-(0)3-5786668
> Fax: +972-(0)3-5703475
> Mobile: +972-(0)58-888377
>
> Know the overall picture
>
>
> *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
> Don't just participate in USENET...get rewarded for it!
Andreas Klemt Guest
-
Natty Gur #4
Re: HowTo Bind a New Collection to my DataGrid? Please take a look to my little code...Thanks!!
OK,
"Use the DataSource property to specify the source of values to bind to
a data listing control. The data source must be an object that
implements the System.Collections.IEnumerable interface (such as
System.Data.DataView, System.Collections.ArrayList, and
System.Collections.Hashtable) to bind to a control derived from the
BaseDataList class." - MSDN
VB collection dosent Implement one of them. consider using one of the
system.collection classes.
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
Don't just participate in USENET...get rewarded for it!
Natty Gur Guest



Reply With Quote

