Thank you for kindly letting me know that there are other forums. However, the answer just so happened to be 50% Javascript, 50% ASP.NET (datagrid).
Private Sub grdContractEvents_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles...
Hello,
I am opening a popup window with this function:
function newWindowEvent(Page)
{
var winl = (screen.width - 400)/2;
var wint = (screen.height - 400)/2;
var settings = "height=400,width=400,toolbar=1,location=1,top="+wint+",left="+winl+"";
var x =...
Ruffnekk,
Thanks for your reply. I guess that would have helped. I'll include more detail next time. As for this time, I got an email yesterday from John Ayers of ComponentOne. If you have the Hyperlink example and have this same problem, replace the MouseMove event of the C1TrueDBGrid with...
Jaminj, this has worked for me in the past:
If trim(txtcigbook.text) = "" then
cmdInsert.Parameters.add("@cigbook", SqlDbType.Money).value = DBNull.Value
Else
cmdInsert.Parameters.add("@cigbook", SqlDbType.Money).value = txtcigbook.text
End If
Hope that helps.
Rudy
Now that I know some of you use this control I'm hoping that someone has the answer to this question.
In the samples there is a project called "Hyperlink". I'm using it to learn how to add a hyperlink column into a much larger project. The only problem is that it has an error in it. If you...
I'm curious. Isn't the object library for Excel 2003 '11.0'? I noticed that Extended Properties = 8.0. That may have nothing to do with it, but it's usually the things that are overlooked that cause me problems.
Rudy
V,
This is what works for me, except I'm using SQL Server:
Dim prmName As SqlParameter = cmd.Parameters.Add("@Param1", SqlDbType.int)
prmName.Value = someNumber
So, I guess yours would be something like this (provided the differences between OleDB and SQL do not change things):
Dim...
Thank you Rick and Christiaan. Even though the reply was not exactly correct, it did lead me to the solution.
' since tablestyles does not have a count property (or I didn't see it anyway)
Grid1.tablestyles.clear
' Then add the style
Grid1.TableStyles.Add(dgStyle1)
That got me working...
Hello,
I need to populate a datagrid a second time. The first time it is populated works perfect. However, when I click on the button that populates it a second time I get this error:
THE DATA GRID STYLES COLLECTION ALREADY CONTAINS A TABLE STYLE WITH THE SAME MAPPING NAME!
' Code that...
sardOnicpan, thank you for posting this question. I have been looking for a 'newbie' explanation on how to set varying column widths in a datagrid. Thanks to your post, I am now able to do that.
I am now getting the "THE DATA GRID STYLES COLLECTION ALREADY CONTAINS A TABLE STYLE WITH THE SAME...
Well, I did not figure out what the problem was. I did figure out that when I build the Install project, install it on my computer, and run the application, there is no interruption. That is true for this project. I'm not sure that I won't see the NullReference in future projects. It's...
I know that the bold methods are in bold when they have code added to them. In other words, if you were to click on Dispose, you would see that it has at least one line of code just like btnProtected_click does in your screenshot.
I'm not sure about the key icons.
Hope that helps.
Rudy
Rick,
Thanks for that suggestion. I removed the install project and the problem still exists. As soon as I added the control it worked the first time and then got the NullReference every time after that. Maybe that's a good thing that it's not happening every other time anymore.
If the main...
Rick, the only other project is the deployment project. I can try removing that tomorrow at work and see if that makes a difference.
Thanks for the quick reply.
Rudy
Has anyone ever encountered anything similar to this? I have a Tab Control on a Windows Form. Currently, it has 8 Tab Pages. On the eighth tab I have 2 DateTimePickers and one Button. I'm trying to add another control to this tab. I need to add a datagrid, but in trying to solve this...
Hi Rick, and everyone else. Would this work the same with the ampersand sign (&). I have a field in SQL Server that has an & in some of the values. I tried using the solution mentioned in this thread, but I might have done something wrong. If this works with & do I change the syntax at all...
staleb,
I have it declared different. I'm not sure where I found this, but I have this in a module:
Public wrdApp As Object
Public wrdDoc As Word._Document
Also, not remembering why, I have this line in the same module:
Imports Word = Microsoft.Office.Interop.Word
I think that...
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.