Search results for query: *

  1. A

    Treeview Control bound to a sqladapter

    I have 2 tables in a SQL database, Categories and SubCategories. I want a treeview to be constructed from them basically Categories being the parent nodes and SubCategories being the child nodes. I want the user to add a new node, add a new child node to an existing parent node, also delete a...
  2. A

    sql adapter transaction problem

    gobjDatabase.CurrentTransaction returns the current transaction object obtained from begin transaction
  3. A

    sql adapter transaction problem

    Hi I have the following code Dim cb As New SqlCommandBuilder(_sqladapter) _sqladapter.UpdateCommand = cb.GetUpdateCommand() _sqladapter.InsertCommand = cb.GetInsertCommand() _sqladapter.DeleteCommand = cb.GetDeleteCommand() _sqladapter.Update(_dataset.Tables(_tablename)) the above code works...
  4. A

    Delete rows from datatable based on another datatable

    I have one datatable say DataTable1 that has some rows of data. DataTable2 also has some rows of data (less than or equal to DataTable1 rows). I need to delete those rows from DataTable1 which are already present in DataTable2 is there a simple way to do that?
  5. A

    Add items from one to other ListBox.

    John, the problem I am facing is this. In order to remove the item from the datatable, i need to know the index of the selected row. If i am looping from the selecteditemscollection, it gives me the index of the item in the selected items array and the wrong item gets removed. If I loop through...
  6. A

    Add items from one to other ListBox.

    I had the same problem and tried the solution. The add and remove fails because in my case the DataSource property for the listboxes is set. What can I do ?
  7. A

    ListBox Question

    Problem Solved!
  8. A

    ListBox Question

    I have to listboxes The use select items from first list box and then clicks on one button and they are removed from the first listbox and added to the second one. I was trying the following code Dim item As control For Each item In ListBox1.SelectedItems 'If item.Selec Then...
  9. A

    datagrid right click menu

    I have a datagrid that has a right click menu to remove certain items from the grid. When someone right clicks on the grid and selects this menu item, the CurrentRowSelected for the grid comes back as 0. If I click on any item in the grid then do a right click remove company then it works. Is...
  10. A

    Change text color to bold

    i tried the reflection but propinfo returns nothing. The getControlFromName worked for me! but if there are a lot of controls on the form it is going to be slow.
  11. A

    Change text color to bold

    For now I just need a way to get a handle to the label control then call the .ForeColor and change the control. The question is how to get a handle to the label control by passing its name?
  12. A

    Change text color to bold

    what is that? i dont know?
  13. A

    Change text color to bold

    yes and no but i am looping through 50 controls to check this so it needs to go in a loop and i dont want to hard code the name. just contstructed it dynamically from the Control.Name
  14. A

    Change text color to bold

    I have a text box named txtName I have a label corresponding to it named lbl_txtName. I have a much wider collection of such items. BAsically what I want to do is if the user doesnt enter anything in the textbox, then label text lbl_<NAME OF THE CONTROL> should be made red. I look through my...
  15. A

    Format DataGrid at design time

    I always forget how to do this. Does someone know how to format a datagrid at design time with all the formatting and then at run time just supply a datasource to it?
  16. A

    Data grid on cell text change event

    What is the event to identify the change of text in a datagrid cell? Also how does it work? does it compare the old value and new value or even if one character is changed it will fire the event?
  17. A

    SqlDataAdapter Update Does not work

    I have a datagrid in which the user can change any data. I also have a save button which when pressed I execute the following code Dim cb As New SqlCommandBuilder(_sqladapter) _sqladapter.UpdateCommand = cb.GetUpdateCommand _sqladapter.Update(dataSet.Tables(_tablename)) When I move out from...
  18. A

    DataGrid on Click

    I have a datagrid and I have implemented the on click as Private Sub grdDataGrid1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles grdDataGrid1.Click 'Some code here End Sub now whenever I click on the datagrid the clicks are registered randomly. Not every...
  19. A

    Menu Object in VB.net

    Perfect! Dumb me. Recurssion Never came to my mind.
  20. A

    Menu Object in VB.net

    this worked only with the main menu options I have the following structure File File -> Open File -> Save View View -> Print Layout View -> Full Layout the code never went to sub options open, save, print layout, full layout etc. What do I need to do with the code to get it into the sub items?
Back
Top