The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
> Hi all.
>
> I've to retrive if a value in a cell is changed.
>
> How can I do it?
>
> Thanks a lot
>
> Paola
>
>
MImikeJune 2, 2003 09:59 PM UTC
Sorry for the earlier blank reply.
Basically, you just check the datasource for changes. You need to move the currentcell or the cell you were editing last won't get caught.
'Move the current cell to to the top left
Datagrid1.CurrentCell = New DataGridCell(0, 0)
'check to see if the dataset has changed
If DataSet1.HasChanges Then
MessageBox.Show("There are changes in the datagrid")
End If
> Hi all.
>
> I've to retrive if a value in a cell is changed.
>
> How can I do it?
>
> Thanks a lot
>
> Paola
>
>
PApaolaJune 6, 2003 10:27 AM UTC
Thanks Mike,
it works fine.
Move the cell modified to current I'm be able to change its backcolor,
but I've another problem...
Can I prevent the click event on a cell?
Unfortunately when a user click on a cell it becames the current cell and so its backcolor changes.... I would change the backcolor only of the cell in which tha data change.
Can you help me?
Thanks a lot.
Paola
> Sorry for the earlier blank reply.
>
> Basically, you just check the datasource for changes. You need to move the currentcell or the cell you were editing last won't get caught.
>
>
> 'Move the current cell to to the top left
> Datagrid1.CurrentCell = New DataGridCell(0, 0)
> 'check to see if the dataset has changed
> If DataSet1.HasChanges Then
> MessageBox.Show("There are changes in the datagrid")
> End If
>
> > Hi all.
> >
> > I've to retrive if a value in a cell is changed.
> >
> > How can I do it?
> >
> > Thanks a lot
> >
> > Paola
> >
> >
>
MImikeJune 9, 2003 12:58 PM UTC
Glad it works. You should be able to prevent the click event by overriding it without calling the base class click event handler. Or you could trap the event and move the focus to another control.
> Thanks Mike,
> it works fine.
> Move the cell modified to current I'm be able to change its backcolor,
> but I've another problem...
>
> Can I prevent the click event on a cell?
>
> Unfortunately when a user click on a cell it becames the current cell and so its backcolor changes.... I would change the backcolor only of the cell in which tha data change.
>
> Can you help me?
>
> Thanks a lot.
>
> Paola
>
> > Sorry for the earlier blank reply.
> >
> > Basically, you just check the datasource for changes. You need to move the currentcell or the cell you were editing last won't get caught.
> >
> >
> > 'Move the current cell to to the top left
> > Datagrid1.CurrentCell = New DataGridCell(0, 0)
> > 'check to see if the dataset has changed
> > If DataSet1.HasChanges Then
> > MessageBox.Show("There are changes in the datagrid")
> > End If
> >
> > > Hi all.
> > >
> > > I've to retrive if a value in a cell is changed.
> > >
> > > How can I do it?
> > >
> > > Thanks a lot
> > >
> > > Paola
> > >
> > >
> >
>