Re: ASP.NET DataGrid EditItemTemplate DropDownList Data Fill In VB

From: Eric Veltman (eric_at_[RemoveThis)
Date: 11/21/03


Date: Fri, 21 Nov 2003 10:18:16 +0100

Paul wrote:

> However this equivalent code in VB.NET causes an error to be raised
> stating that the object is not referenced to anything.
>
> Is filling a dropdownlist in templated item in a datagrid with data
> in code behind only possible in C#?

There are only few very advanced things in C# that VB.NET can't do.
I don't see any of those things in the code you posted.

So probably the VB.NET equivalent of your code
is not totally equivalent to the C# version.

Can you perhaps post the VB.NET "equivalent" and
indicate at what line the exception is being thrown
and about which object it is complaining ?

Regards,

Eric

P.S. Next time, you can better post to ...
microsoft.public.dotnet.framework.aspnet
... as it's a more specific group, with a larger percentage
of the audience actually knowing about ASP.NET.



Relevant Pages

  • Re: Data Relation question
    ... Seems to me that either you're filling the event data before you're filling ... The Sql statement you have ... > When I run the Query, ... > I would like to show all the contacts in the first datagrid. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Hidden columns in execution time
    ... thank's Paul, but this did not decide my problem and i already had attemped ... I have a column with hyperlink where it must receive the page from ... > If you have set AutoGenerateColumns to false for your datagrid, ... >> column of grid that is mounted in execution time become hidden. ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: NullReferenceException in datagrid while scrolling
    ... > tooltip related functions in the datagrid. ... > Is this a known bug? ... filling the dataset with large amounts of data, ... then rebound and refreshed the grid afterwards. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: DataSet
    ... Dears Paul and Wilian, ... but I can't apply the changes to the database. ... > should you display tabular data, I'd say a DataSet and a DataGrid, as my ... >> Using SQLCEDataAdapter? ...
    (microsoft.public.dotnet.framework.compactframework)
  • RE: Updating data in a datagrid
    ... A little more context of your problem would be ... You should be able to access the grid control via a member element ... "Paul" wrote: ... > my datagrid. ...
    (microsoft.public.dotnet.languages.csharp)