I have a DataGridView in a windows form that I need to be able to make the datagridviewbutton visible or invisible depending on the value of another column. I can not figure out how to make this happen when I bind the datatable to the datagridview. Any help would be appreciated. Thanks John
john_paul
Posts
-
Hiding a Button in a DataGridView -
HTTP_REFERER questionHow do you get the System.Web.HttpContext.Current.Request.ServerVariables("HTTP_REFERER") in a web service. I need to know where the request is coming from and using the above does not work. Thanks
-
Graphs using GraphicsServerThanks for the reply Here is the code that I used to get the formatting I wanted. With .Grid.AxisY .AxisMode = AxisMode.ValueLinear .AxisScale = AxisScaleType.UserDefined .LabelFormatMask = "###,###,###" .GridLinesOn = True .GridLineProperties.Color = Color.DarkGray .MaxAxisValueUser = highest .MinAxisValueUser = 0 .TickMode = TickMode.OnStartAtZero .MajorTickInterval = 5 .MajorTickCount = 0 'If count is nonzero, interval is ignored .LabelProperties.Font = New Font("Tahoma", _ 8, FontStyle.Bold) .LabelProperties.Font.Dispose() End With
-
Graphs using GraphicsServerOn the Y axis of a graph, if the graph starts at 0 and goes to 10000. Is there a way you can force the graph to display the Y values to include a comma so that 10000 renders as 10,000. Thanks
-
VB 2005 GraphicsServerDoes anyone have a project that they have done that demonstrates how to use the GraphicsServer.GSNET.Charting.GSNetWebChart. Thanks
-
VB 2005 Gridview questionI have a gridview in a VB2005 project that contains a checkbox. In VB2003 I used a datagrid and I have the code to read the datagrid to determine how many and which boxes were checked. I am having trouble converting my code to use a gridview. How do you in VB2005 read a gridview and determine if the checkbox was checked? Thanks
-
Serialization in vb2005Thanks for your help
-
Serialization in vb2005I have a class that I want to save to viewstate. In order to save it to viewstate it has to be serializable. How do you serialize a class and then unserialize it. thanks John
-
Javascript question - validating dollar amountThanks for the reply, but can't view it. Javascriptkit.com's server has been down for two days
-
Javascript question - validating dollar amountI am trying to validate a text box as the user keys in the dollar amount. Using the below function, if the user keys in "a", it does the alert If I key in 10aa, I get the alert but if I key in 10a, I don't get the alert. Any ideas about what I am doing wrong. Thanks John function TestForNumber( obj, event ) { var curChar = String.fromCharCode( event.keyCode ); var inpStr = obj.value + curChar; result = inpStr.match( '^[0-9]+\.?[0-9]??[0-9]?$' ); if ( ! result ) { event.returnValue = false; event.cancel = true; alert("Unapplied cash can only be numerical data") } }
-
X axis labels question - Web projectI was able to determine that I needed to use: labels.SetValue( SeriesComponent.Label, datapoint, monthArray(dataPoint))
-
X axis labels question - Web projectI can not figure out how to include a x axis label. When I run the program it only puts numbers 1 thru 6, which are the number of columns I have in the Bar2d graph. I would like to replace the 1 thru 6 with for example Jan Feb Mar Apr May Jun. The project is using the Imports GraphicsServer.GSNet.Charting and Imports GraphicsServer.GSNet.SeriesData in a web form. Thanks in advance John
-
Regular expressionsI am trying to test a text box for either numbers or a null entry. I have tried using [0-9]|[:blank:]|[:space:] but it will not work. Any help would be appreciated.
-
test for numbers containing a decimal pointI know that I can use javascript to test for a number using the below, but I am having trouble figuring out how to use javascript to test for the entry of for example 100.00 or 100, the decimal point is messsing me up. Any help would be appreciated. function TestKeyPress( obj, event ) { var curChar = String.fromCharCode( event.keyCode ); var inpStr = obj.value + curChar window.status = ''; obj.title = ''; result = inpStr.match( '^[0-9]+$' ); if ( ! result ) { window.status = 'Please enter only numbers.'; obj.title = window.status; event.returnValue = false; event.cancel = true; } }
-
How do you code a method = postI have to send data to another domain/url via the post method. If the url name is https://theirwebaddress.com and I need to send two text fields first and last name. How would you code this? Thanks
-
How to Post Data to a different domain/urlI did look in MSDN and it showed using the request.query.string without any parameters and the output as being unparsed. But what they don't show and I don't understand is how I get the unparsed data into a variable that I can parse. The data that I will be receiving does not have any parameter names just data. Thanks
-
How to Post Data to a different domain/urlThanks Sorry for the email
-
How to Post Data to a different domain/urlI am trying to figure out how to send data and my customer to my banks web site to enroll for paying their bills online. The post string that I am suppose to use is: https://banks_web_site.com/enroll?id=12345&name=Customer&accountid=98765&backurl=https://my_web_site.com/return.aspx The bank will return to me the following info and my customer (so they can continue the payment process) via https://my_web_site.com/return.aspx?return=0&enroll_id=765431 I'm having trouble trying to get this to work, any help would be appreciated. Another thing that has me stumped is if I do what the bank calls a payment search, I send to them with no return url: https://banks_web_site.com/pay_search?id=12345&&enroll_id=765432&days=2 They will return the following: 0::: 7777:1:1123123123:VISA:987554 8888:1:1231238744:AMEX:876454 Unlike the first example, the returned info is not qualified by a query string name. How do you receive this data ?
-
How to Post Data to a different domain/urlI am trying to figure out how to send data and my customer to my banks web site to enroll for paying their bills online. The post string that I am suppose to use is: https://banks_web_site.com/enroll?id=12345&name=Customer&accountid=98765&backurl=https://my_web_site.com/return.aspx The bank will return to me the following info and my customer (so they can continue the payment process) via https://my_web_site.com/return.aspx?return=0&enroll_id=765431 I will be using VB. I'm having trouble trying to get this to work, any help would be appreciated. Another thing that has me stumped is if I do what the bank calls a payment search, I send to them with no return url: https://banks_web_site.com/pay_search?id=12345&&enroll_id=765432&days=2 They will return the following: 0::: 7777:1:1123123123:VISA:987554 8888:1:1231238744:AMEX:876454 Unlike the first example, the returned info is not qualified by a query string name. How do you receive this data ?
-
Passing Data between different web sitesThank you for the info.