
gprabaka
Members-
Posts
21 -
Joined
-
Last visited
Content Type
Profiles
Forums
Blogs
Events
Articles
Resources
Downloads
Gallery
Everything posted by gprabaka
-
Good Morning, I have a page with a GridView GV1 with another GridView Embedded in it called GV2. GV2 is typically not available until I fire an event on it, when I have to instantiate it by a statement GridView GVChild = (GridView)GV1.SelectedRow.FindControl("GV2"); However, on firing the OnPageIndexChanging event of GV2, I do not know how to get the selectedRow value of the Parent GridView GV1, so I can page on only records associated with the row of GV1. Thanks Guha
-
Hello, I have an ASP.NET page on which I have 5 GridViews. On each gridview I have a link column which will display the child info on the next gridview. When I click and display the next gridview I want to make the page scroll down to the location of that gridview, without the user having to scroll down. Can anyone tell me a good way to do this. Thanks Guha
-
Good Afternoon, I have a DataSet ds. This contains 2 Tables, Table1 and Table2. I display Table1 on a Grid and Table 2 on another Grid. Table1 is the parent of Table2. When I create a new row on the Grid for Table1, I go to the database to insert the new Table1 row into the Table and get the Table1ID. For this I define a DataTable dtChanges = ds.Tables["Table1"].GetChanges() and call a stored procedure with table dtChanges. The ID is blank in ds.Tables["Table1"]. However, after my insert into the database I have the real ID. What is the easiest way for me to update ds.Tables["Table1"] with the ID? Thanks Guha
-
Well, It is not a key field like an ID. However it does need to be populated. For example if we have table like Customer and a table Order. The Order while populating the Order table we will need to populate the Customer# as the foreign key. The would have to be a user selected/entered field. Thanks Guha
-
Are you basically wanting to scroll up or down to the first occurrance of the text you are searching? Guha
-
Good Morning, I have a treeview control on a Windows form application. Does anyone know of a way I can allow the user to expand the size of the control instead of them having to scroll left and right. Thanks Guha
-
Good Morning, This should be a simple question, but I do not know how to do it? I have a datagridview, bindingsource and data from a table in a dataset. I am not displaying the unique ID of the table, on the datagridview. I need to find the value of the ID field of the table on a doubleclick event. Can someone tell me how to do that. Thanks, Guha
-
Mr. PlausiblyDamp, Are you saying that I need to start populating from cells[0,0] and not from cells[0,1]? Thanks Guha
-
All, When it hits the Bold line, I get the error, Index was outside the bounds of the array. Anyone know what I need to know. Thanks Guha <<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>> DataGridViewCell[,] cells = new DataGridViewCell[15, 1]; foreach (DataGridViewCell cell in selectedCells) { cells[0, 1].Value = cell.value; }
-
How can I paste data into Windows datagridview
gprabaka replied to gprabaka's topic in Windows Forms
I created a VB project and created a class there for just the controlchars and I was able to reference that dll in my C# project. Thanks Guha -
How can I paste data into Windows datagridview
gprabaka replied to gprabaka's topic in Windows Forms
Thanks. I was able to translate the class to c# except I can not find the class Microsoft.VisualBasic.ControlChars. Thanks for the help. Guha -
How can I paste data into Windows datagridview
gprabaka replied to gprabaka's topic in Windows Forms
Todd, I was wondering if you had a C# version of this class. I converted this class but for some reason the DataGridView class does not have the Item property on my IDE. I am on .Net Framework 2.0. Thanks -
How can I paste data into Windows datagridview
gprabaka replied to gprabaka's topic in Windows Forms
Thank you very much. I will give this a try. Guha -
I have a windows form application with a datagridview control. The user can edit and add records. Can someone advise me on how I can paste data in the same format on the dataviewgrid. Thanks for your help. Guha :)
-
Crystal Report From Field Definitions Only
gprabaka replied to AsifCh's topic in Database / XML / Reporting
Asif, Are you trying to use an XSD as your data source for your report? Are you doing this on a .Net Website or a Windows Application? Guha -
Thanks for any help you can provide. I have Visual Studio .Net 2003. I created a report using the Crystal Report Assemblies that came with VS 2003. I am trying to deploy this to our testing environment and I am having problems. I did all the steps mentioned in the crnet_deployment.pdf, which is the one published by Crystal Reports, for ASP.Net deployment. I included the Crystal_Managed2003.msm and Crystal_regwiz2003.msm as mentioned and entered the key provided to me by Crystal Reports. It appears that the CrystalDecisions.CrystalReports.Engine.dll, CrystalDecisions.ReportSource.dll and the CrystalDecisions.Shared.dll are not getting deployed to the appropriate place in the machine I am deploying to. Can anyone tell me what I am doing wrong and or how the .msm files are to work in deplying the .dlls. Thanks Guha
-
Error Opening Word Doc in C#.Net Command Failed
gprabaka replied to gprabaka's topic in Interoperation / Office Integration
Thanks. I will look for alternatives. -
I am writing a webservice in C#.Net. I added the reference to Microsoft.Office.Interop.Word. When I attempt to do Documents.Open, I get the following error: Can someone pleease help. Thanks Guha Error System.Runtime.InteropServices.COMException (0x800A1066): Command failed The Code: strWordTemplateFile = Server.MapPath(AppSettings.SupportingDocumentsLocation + "/LicenseOrderConfirmation.doc"); strWordDocumentFile = "c:\\temp\\LicenseOrderConfirmation.doc"; objWordDocumentFile = "c:\\temp\\LicenseOrderConfirmation.doc"; Microsoft.Office.Interop.Word.ApplicationClass objWord = new Microsoft.Office.Interop.Word.ApplicationClass(); System.IO.File.Copy(strWordTemplateFile,strWordDocumentFile,true); object objVisible = false; objWord.Visible = false; objWord.Documents.Open(ref objWordDocumentFile,ref missing, ref missing, ref missing,ref missing, ref missing,ref missing, ref missing, ref missing, ref missing, ref missing, ref objVisible,ref missing,ref missing, ref missing, ref missing);
-
Please find code below which is run by an Excel macro. I am trying to make this call a Webservice I wrote in another C# solution. When the code trys to run this method, it gives the error "Execution permission cannot be acquired". Even the MsgBox At the Top does not appear. However, if I comment the line token = new usernameToken(..., The MsgBox Came to the End will appear. Does anyone know what is the problem. Thanks Guha PS. This application Imports Office = Microsoft.Office.Core (Microsoft Office 11.0 Object Library) Imports Excel = Microsoft.Office.Interop.Excel (Microsoft Excel 11.0 Object Library) <<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>> Public Sub PostToSwims(ByVal publisherName As String, _ ByVal vendorName As String, _ ByVal programName As String, _ ByVal effectiveDate As String, _ ByVal jobDesc As String, _ ByVal fileName As String) MsgBox("At the top") Dim strResult As String Dim token As UsernameToken Dim username As String = "BLAHBLAH" Dim passwordBytes() As Byte = System.Text.Encoding.UTF8.GetBytes("BSBSBS") Array.Reverse(passwordBytes) Dim passwordEquivalent As String passwordEquivalent = Convert.ToBase64String(passwordBytes) token = Nothing Try token = New UsernameToken(username, passwordEquivalent, PasswordOption.SendPlainText) Catch ex As Exception MsgBox(ex.Message) End Try MsgBox("Came to the End") End Sub