Search:

Type: Posts; User: sunhpj

Page 1 of 3 1 2 3

Search: Search took 0.03 seconds.

  1. Replies
    7
    Views
    806

    Re: Why DataTable Select doesn't support A*D

    I actually use DataView.filter.

    But the problems are the same
  2. Replies
    7
    Views
    806

    Re: Why DataTable Select doesn't support A*D

    Hi, even it is not directly supported, I need to implement it myself.

    For A*D, and I can just seperate A* and *D

    but for free combination, like A*D*B*C*

    How can we handle?
  3. Replies
    7
    Views
    806

    Re: Why DataTable Select doesn't support A*D

    I actually can guest why it cannot support, because * and % also are operators. if we set column like A*D, API cannot know it is A multiplied by B or A wildcard B.

    But Microsoft just throw an...
  4. Replies
    7
    Views
    806

    Re: Why DataTable Select doesn't support A*D

    Sorry, A%D is also invalid, both in MSDN document and my testing.

    http://msdn.microsoft.com/en-us/library/system.data.datacolumn.expression(VS.71).aspx

    a line:

    Wildcards are not allowed in...
  5. Replies
    7
    Views
    806

    Why DataTable Select doesn't support A*D

    I am not sure some one asked it before.

    I see that the Select Method of DataTable only supports * before and/or behind the characters. If it is A*D, it exits with exception.

    I want to know why...
  6. Replies
    11
    Views
    27,341

    Is there a Line control in VB.net?

    In VB6, there is a Line Control in Tool Box, we can draw a line in a form.

    But I cannnot fine such control in toolbox of VB.net
  7. Re: can run program locally but not from network drive

    I tried caspol.exe.
    It seems that administrator is required for grant full trust of a .net application.

    Is there any automatic way (like batch file or scripe) to grant a .net app trust so that it...
  8. Re: can run program locally but not from network drive

    Hi all,

    I have installed VS 2005 and developed an application.

    But why can't I fnd caspol.exe?

    While running the command as the threads, it comes up with
    'caspol' is not recognized as an...
  9. Re: How to run an VB.net application on a PC without .NET installed

    So it require users to install .net?
    It is not reasonable. Any automatic way to help users do this?
  10. How to run an VB.net application on a PC without .NET installed

    I copy the executable in my Release/bin folder of my project to a PC without any development environment setup.

    When double clicking it , it just gets nothing.

    Do I need to copy some dll as...
  11. Re: How to add an unbound column to a data based binded datatable in a datagrdiview

    Actuall the title is How to add an unbound column to a data based binded datatable in a datagrdiview. Sorry if I didn't make it clear.

    I tried adding it to a table after the table is filled by the...
  12. Re: How to add an unbound column to a data based binded datatable in a datagrdiview

    Thx for suggestion.

    But I need to add the column to datatable rather than a dgv, since our following operations are performed on datatable.

    I still need to add a column to a database binded...
  13. How to add an unbound column to a data based binded datatable in a datagrdiview

    I have a dataadapter binded datatable that bounded to a binding source and then datagridview.

    Rather then the columns updated from database, by fill or update command of dataadapter. I need to add...
  14. Re: [2005] How to user defied class as dictionary value type?

    Yes, you both quite right.

    Sorry for such a stupid mistake.

    Thx.
  15. [RESOLVED] [2005] How to user defied class as dictionary value type?

    I define my own class as a value type in dictionary.

    But while retrieving, some property values are missing.

    Need I write any other overrides function to copy the value?


    Private Class...
  16. Replies
    3
    Views
    706

    [RESOLVED] How to stop closing form?

    I need to check whether the user really want to close the form.

    But if I do this in Formclosing, the form will be closed anyway.
  17. Re: How to find a DataGridViewRow matching a datarow?

    For simple selection it works.

    As for using Select

    But for some complicated condition, how can I do this.

    For example, My Grid has a column named "A B C" (blank between characters)

    I...
  18. Re: How to find a DataGridViewRow matching a datarow?

    Thanks for reply.
    I believe it works. though still use looping,
    I prefer some property to get this,but it seems not exist.
  19. Re: [2005] How to automatically display a row (by scroll) in datagridview

    Your opinion sounds good.

    I handle this by setting current cell. It comes to my goal though not exactly the same function of TopRow.

    However, there are some problems that the doc cannot help a...
  20. Re: How to find a DataGridViewRow matching a datarow?

    I posted this thread for couple of days but not replied yet.

    Is it rather impossible, without naive looping the manually find it.
  21. [2005] How to automatically display a row (by scroll) in datagridview

    In VB6, I got the following codes, how to do the same in VB 2005?
    It set the rows(i) to be displayed in screen. but in VB.net, there is no TopRow.


    If (Grid.RowIsVisible(i) = False) Then
    ...
  22. Re: [2005] How to define the datasource of TextBox

    Yes, it is.

    But as I tried, only the first row is displayed in the text box.

    How if I want to display other row at run-time? Which function should I call?
  23. Re: [2005] How to define the datasource of TextBox

    Yes it is DataBindings
  24. [2005] How to define the datasource of TextBox

    It seems that in VS 2005, textbox no longer has the property of DataSource.

    But I still have to bind it to a datatable, and runtime define a value in the table.. How to do this.
  25. How to find a DataGridViewRow matching a datarow?

    If the DataGridView is binded to a BindingSource, whic is in turn binded to a DataTable.

    Now I need to set a row in DataGridView as be selected. I know how to do this if I get the DataGridViewRow...
  26. Re: How to programmaticly select a row in datagridview and update its child grid?

    Yes I understand what you said.

    But please be informed that by defining relation on a dataset and assigning to child binding source, I needn't write any code in the click event of row.
    The update...
  27. Re: How to programmaticly select a row in datagridview and update its child grid?

    Sorry, I still cannot get your point.

    DataGridView doesn't have a method like PerformClick.

    What I need is for two DGV having relation (one is parent and other is child),

    When I click a row...
  28. Re: How to programmaticly select a row in datagridview and update its child grid?

    Thanks for help.

    But I need to click the row programmatically rather then a button.

    You mean I have to host a button in each row? it is unacceptable.
  29. How to programmaticly select a row in datagridview and update its child grid?

    I bind datagridview 2 as a child of dgv1 by defining a relation.

    I need to select a row in dgv1 on demand. I do this be setting the row.selected=true, but dgv2 cannot be automatically updated...
  30. Re: How to implement trigger (like content change) on an array

    How to raise an event manually?

    I just know adding stuff in system event .
  31. Re: [RESOLVED] [2005] Modify a row and then filter, exception: Index 1 does not have a value

    Hi, thanks .

    Actually it is just a bug issue, so I mark it resolved after I fix the bug.

    After chosing a filter, just one row left, so bindingsource just has 1 row.
    But I click the last row(...
  32. Re: [2005] Any automatic mechanism for synchrony between two DataGridView

    Hi, I know that the Parent-Child relation in dataset can automatically provide update of one grid according to selection of another.

    Is it support multi-level relation? like family in parent-child...
  33. How to implement trigger (like content change) on an array

    For example, I setup an array,

    I need to raise an event or call a function automatically when any element of an array is changed. How can I do this?
  34. Re: How to manually refresh a DataGridView, from binding data base,and delete a row in db

    Hi, I know that the Parent-Child relation in dataset can automatically provide update of one grid according to selection of another.

    Is it support multi-level relation? like family in parent-child...
  35. How to change apperance of DataGridView button and checkbox column

    For a DataGridViewButtonColumn, how to make it transparent or the same color with other normal cells?
    I tried CellTemplate.Style and DefaultCellStyle, but it doesn't work

    For...
  36. How to accurately locate pop up form besides a cell

    When mouse enters a cell, I need to pop up a form just besides the cell, like, the top left of the form is at the bottom right of the form.

    But the following code doesn't work, where the form...
  37. [RESOLVED] [2005] Modify a row and then filter, exception: Index 1 does not have a value

    My datagridview is binded to a binding source.

    Then I change a value of a cell in column (c) in the first row, and click other rows.

    Then I set the filter of the binding source by the other...
  38. Re: How to manually refresh a DataGridView, from binding data base,and delete a row in db

    Sorry for posting in the same thread. But I just follow the discussion of acceptchange. Will do it better next time.

    The second way you mentioned seems a little slower if I just want to know...
  39. Re: How to manually refresh a DataGridView, from binding data base,and delete a row in db

    Here comes another problem,
    How can I know there is some pending changes in datatable waiting for acceptchange or not?

    It is important if I want to give user a warning when he close the form
  40. Re: Master/Detail (Parent/Child) Data-binding (.NET 2.0+ WinForms)

    Hi jmcihinney, your link really helps.

    However, it is not exactly what I want. It just seems a filter

    1. Adding the relation for parent and child require unique id in parent table. But I don't...
Results 1 to 40 of 110
Page 1 of 3 1 2 3



Click Here to Expand Forum to Full Width