Help with Datagrid events please.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lars Netzel

    Help with Datagrid events please.

    I have a datagrid, datasource is a dataset that contains no items... I place
    the cursor in the first cell in the datagrid and start typing values.. after
    I have filled in all the "mandatory" fields a new row is created in the
    bottom of the grid (with a * character as the rowheader).... I need to
    capture that Event when that happens so I can do other stuff depending on
    the info I just entered on the first row, but I need to know that that row
    is okay first.

    I tried Datasource Changed but that did'nt give anything!

    Besr regards/
    Lars Netzel


  • Ken Tucker [MVP]

    #2
    Re: Help with Datagrid events please.

    Hi,

    Maybe this will help.
    Get detailed answers to common queries about Syncfusion Windows Forms components covering installation, features, licensing, and developer support.


    Ken
    -----------------
    "Lars Netzel" <[stop_spam]@host.topdomain > wrote in message
    news:e814FGIREH A.2936@TK2MSFTN GP12.phx.gbl...[color=blue]
    >I have a datagrid, datasource is a dataset that contains no items... I
    >place
    > the cursor in the first cell in the datagrid and start typing values..
    > after
    > I have filled in all the "mandatory" fields a new row is created in the
    > bottom of the grid (with a * character as the rowheader).... I need to
    > capture that Event when that happens so I can do other stuff depending on
    > the info I just entered on the first row, but I need to know that that row
    > is okay first.
    >
    > I tried Datasource Changed but that did'nt give anything!
    >
    > Besr regards/
    > Lars Netzel
    >
    >[/color]


    Comment

    • Lars Netzel

      #3
      Re: Help with Datagrid events please.

      Thankx but no, not really, it did'nt help me.

      I need to capture a RowChange (or datasource row change) and what I need in
      that Event is info from the row I came from!

      /Lars




      "Ken Tucker [MVP]" <vb2ae@bellsout h.net> skrev i meddelandet
      news:OyKneYIREH A.4016@TK2MSFTN GP12.phx.gbl...[color=blue]
      > Hi,
      >
      > Maybe this will help.
      > http://www.syncfusion.com/FAQ/WinFor...c44c.asp#q823q
      >
      > Ken
      > -----------------
      > "Lars Netzel" <[stop_spam]@host.topdomain > wrote in message
      > news:e814FGIREH A.2936@TK2MSFTN GP12.phx.gbl...[color=green]
      > >I have a datagrid, datasource is a dataset that contains no items... I
      > >place
      > > the cursor in the first cell in the datagrid and start typing values..
      > > after
      > > I have filled in all the "mandatory" fields a new row is created in the
      > > bottom of the grid (with a * character as the rowheader).... I need to
      > > capture that Event when that happens so I can do other stuff depending[/color][/color]
      on[color=blue][color=green]
      > > the info I just entered on the first row, but I need to know that that[/color][/color]
      row[color=blue][color=green]
      > > is okay first.
      > >
      > > I tried Datasource Changed but that did'nt give anything!
      > >
      > > Besr regards/
      > > Lars Netzel
      > >
      > >[/color]
      >
      >[/color]


      Comment

      • Cor Ligthert

        #4
        Re: Help with Datagrid events please.

        Hi Lars,

        When that * appears the data is written in the dataset or better in the
        datatable.

        Did you already look if the datatable events can do something for you.



        If you want it before that you will need the datagrid currentcell changes a
        problem however I thought that did not fire when you acknowledge the row and
        the * appears.

        This is a known problem you often see in this newsgroup, when you go
        searching for it watch especially for messages/answers from CJ Taylor who
        often talks about this problem as well, there seems even to be even a
        difference with this between dotnet 1.0 and dotnet 1.1

        I hope this helps anyhow?

        Cor


        Comment

        Working...