Connecting Tech Pros Worldwide Help | Site Map

Error when committing the row to the original data store

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 20th, 2005, 03:31 PM
Sanjeev K B
Guest
 
Posts: n/a
Default Error when committing the row to the original data store

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



  #2  
Old November 20th, 2005, 03:32 PM
Ken Tucker [MVP]
Guest
 
Posts: n/a
Default 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]


  #3  
Old November 20th, 2005, 03:32 PM
Ken Tucker [MVP]
Guest
 
Posts: n/a
Default 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]


  #4  
Old November 20th, 2005, 03:32 PM
Sanjeev K B
Guest
 
Posts: n/a
Default 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]


  #5  
Old November 20th, 2005, 03:32 PM
Sanjeev K B
Guest
 
Posts: n/a
Default 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]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.