Connecting Tech Pros Worldwide Help | Site Map

Error when committing the row to the original data store

Sanjeev K B
Guest
 
Posts: n/a
#1: Nov 20 '05
Hi all,

I am working on a project involving Datagrid with an extended feature of
combo box

i am trying to stop the occurance of duplicate ID's
i want to trap the message "Error when committing the row to the original
data store"
i would like to display my own message box and cancel the row that is being
added.

could anyone please help me out

Thanks and Regards,
Sanjeev K. B


Ken Tucker [MVP]
Guest
 
Posts: n/a
#2: Nov 20 '05

re: Error when committing the row to the original data store


Hi,

You could override the SetColumnValueAtRow of your comboboxcolumn to
check for duplicate values before adding the data to original data store.

Ken
-----------------
"Sanjeev K B" <sanju@jcastnet.com> wrote in message
news:uqJCSclGEHA.2980@TK2MSFTNGP09.phx.gbl...[color=blue]
> Hi all,
>
> I am working on a project involving Datagrid with an extended feature of
> combo box
>
> i am trying to stop the occurance of duplicate ID's
> i want to trap the message "Error when committing the row to the original
> data store"
> i would like to display my own message box and cancel the row that is[/color]
being[color=blue]
> added.
>
> could anyone please help me out
>
> Thanks and Regards,
> Sanjeev K. B
>
>[/color]


Ken Tucker [MVP]
Guest
 
Posts: n/a
#3: Nov 20 '05

re: Error when committing the row to the original data store


Hi,

You could override the SetColumnValueAtRow of your comboboxcolumn to
check for duplicate values before adding the data to original data store.

Ken
-----------------
"Sanjeev K B" <sanju@jcastnet.com> wrote in message
news:uqJCSclGEHA.2980@TK2MSFTNGP09.phx.gbl...[color=blue]
> Hi all,
>
> I am working on a project involving Datagrid with an extended feature of
> combo box
>
> i am trying to stop the occurance of duplicate ID's
> i want to trap the message "Error when committing the row to the original
> data store"
> i would like to display my own message box and cancel the row that is[/color]
being[color=blue]
> added.
>
> could anyone please help me out
>
> Thanks and Regards,
> Sanjeev K. B
>
>[/color]


Sanjeev K B
Guest
 
Posts: n/a
#4: Nov 20 '05

re: Error when committing the row to the original data store


hi Ken,

thanks for the tip.

Could u also please tell me how to return an error to the user.
is there any other way of tackling this situation other than making
modifications to the DataGridComboBox Column.

Thanks and Regards,
Sanjeev K.B

"Ken Tucker [MVP]" <vb2ae@bellsouth.net> wrote in message
news:eyuE74mGEHA.2308@tk2msftngp13.phx.gbl...[color=blue]
> Hi,
>
> You could override the SetColumnValueAtRow of your comboboxcolumn[/color]
to[color=blue]
> check for duplicate values before adding the data to original data store.
>
> Ken
> -----------------
> "Sanjeev K B" <sanju@jcastnet.com> wrote in message
> news:uqJCSclGEHA.2980@TK2MSFTNGP09.phx.gbl...[color=green]
> > Hi all,
> >
> > I am working on a project involving Datagrid with an extended feature of
> > combo box
> >
> > i am trying to stop the occurance of duplicate ID's
> > i want to trap the message "Error when committing the row to the[/color][/color]
original[color=blue][color=green]
> > data store"
> > i would like to display my own message box and cancel the row that is[/color]
> being[color=green]
> > added.
> >
> > could anyone please help me out
> >
> > Thanks and Regards,
> > Sanjeev K. B
> >
> >[/color]
>
>[/color]


Sanjeev K B
Guest
 
Posts: n/a
#5: Nov 20 '05

re: Error when committing the row to the original data store


hi Ken,

thanks for the tip.

Could u also please tell me how to return an error to the user.
is there any other way of tackling this situation other than making
modifications to the DataGridComboBox Column.

Thanks and Regards,
Sanjeev K.B

"Ken Tucker [MVP]" <vb2ae@bellsouth.net> wrote in message
news:eyuE74mGEHA.2308@tk2msftngp13.phx.gbl...[color=blue]
> Hi,
>
> You could override the SetColumnValueAtRow of your comboboxcolumn[/color]
to[color=blue]
> check for duplicate values before adding the data to original data store.
>
> Ken
> -----------------
> "Sanjeev K B" <sanju@jcastnet.com> wrote in message
> news:uqJCSclGEHA.2980@TK2MSFTNGP09.phx.gbl...[color=green]
> > Hi all,
> >
> > I am working on a project involving Datagrid with an extended feature of
> > combo box
> >
> > i am trying to stop the occurance of duplicate ID's
> > i want to trap the message "Error when committing the row to the[/color][/color]
original[color=blue][color=green]
> > data store"
> > i would like to display my own message box and cancel the row that is[/color]
> being[color=green]
> > added.
> >
> > could anyone please help me out
> >
> > Thanks and Regards,
> > Sanjeev K. B
> >
> >[/color]
>
>[/color]


Closed Thread