Jump to content
Xtreme .Net Talk

gprabaka

Members
  • Posts

    21
  • Joined

  • Last visited

Everything posted by gprabaka

  1. 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
  2. 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
  3. 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
  4. 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
  5. I have a datagridview on a Windows form. The first 2 columns are the key fields for the table in the database, so I have have them formatted on the grid as ReadOnly. However, I need to make them editable when adding a new row. Can someone advise me as to how this can be done. Thanks Guha
  6. Are you basically wanting to scroll up or down to the first occurrance of the text you are searching? Guha
  7. 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
  8. 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
  9. Good Afternoon, What is the most efficient way, in your opinion, to copy the the data structure and data from a table in a dataset to another dataset? Thanks Guha
  10. Mr. PlausiblyDamp, Are you saying that I need to start populating from cells[0,0] and not from cells[0,1]? Thanks Guha
  11. 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; }
  12. 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
  13. 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
  14. 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
  15. Thank you very much. I will give this a try. Guha
  16. 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 :)
  17. 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
  18. 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
  19. Thanks. I will look for alternatives.
  20. 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);
  21. 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
×
×
  • Create New...