Help with Datagrid events please.

L

Lars Netzel

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
 
L

Lars Netzel

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
 
C

Cor Ligthert

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.

http://msdn.microsoft.com/library/d.../html/frlrfSystemDataDataTableEventsTopic.asp

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top