Hi jebenson
Thanks. I tried that and while it works, the next line of code executed is a 'random' (not random, but I can't figure out the logic) line of code buried in an If block later in the code, missing out a chunk. I can't figure out why.
If I put it in a try/catch block it throws a null...
Hi.
Thanks for your reply.
Yes, the new datarow will have nulls for all the values.
Decimal.TryParse("4", r("dbl"))
I'm trying to populate r("dbl") with the value 4. Surely it shouldn't matter whether r("dbl") is null or not...?
Cheers
Wally
Hi.
I'm having troubles understanding what the problem is with this. In my application I'm trying to parse & insert a (valid) string into a column/row in a datatable.
Here's a boiled down example:
Dim dt As DataTable = New DataTable("dt")
dt.Columns.Add("dbl", Type.GetType("System.Double"))...
I'm using a multiple select drop down parameter in Reporting Services 2005. Is there any way I can increase the height of the drop down so more items are displayed without having to scroll to get them?
Cheers
Wally
Gidday.
(This should possibly be a new thread, but it does follow on from my previous one)
OK, when I integrate this into my project I've come across a bit of a weird issue. I haven't had a chance yet to break it down into something simpler yet so I can't nail down where the problem is yet...
Hi.
Well, I had to put this aside for a while due to other work, but I'm back on it again.
I got this working fine in my simplified version, but it took a bit more work to get it going in my actual project which is a more complex. Anyway, it's all working good now - thanks for your help.
One...
I did wonder if that was what was actually being done 'in the background', but I thought maybe I was overthinking it. I guess I should have run profiler to see what was happening on the sql server for a basic (working) example.
So, because I have a number of GridViews nested in a DataList (the...
Gidday
FormView1.ChangeMode(FormViewMode.Edit) should work.
You could also try changing the default mode:
FormView1.DefaultMode = FormViewMode.Edit
Hope that helps
Cheers
Wally
Thanks matey.
I've been messing around with this and this is what I've currently got. I know it's not right because it doesn't work.. :-)
This is where I'm at at the moment:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Test.aspx.vb" Inherits="Test" %>
<!DOCTYPE html PUBLIC...
Hi.
Ok, I moved the code to the item databound event. I'm not entirely sure why I had it in the itemcreated event - must have been clutching at straws. Anyway, this didn't make any difference - exact same behaviour.
So I ditched the SqlDataSource control & filled a DataAdapter and bound that...
I've never really had any problem with them before, and I'm not entirely sure they are the problem.
What would you suggest to use instead?
Cheers
Wally
(Reposted from Visual Basic(Microsoft) -VB.NET/VB2005 Forum, as this forum seems a better place for it...)
Hi.
I have a DataList that shows a number of GridViews. The datasource for the DataList returns a Name/title for each GridView, along with the Select/Delete commands and comma seperated...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.