We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Error "No value at index 1" on deleting datagrid row

Thread ID:

Created:

Updated:

Platform:

Replies:

4635 May 22,2003 02:52 AM UTC Jul 12,2005 02:21 AM UTC Windows Forms 1
loading
Tags: FAQ
Keshav
Asked On May 22, 2003 02:52 AM UTC

I have a Datagrid with four columns. the last column is of style checkbox(DataGridBoolColumn). The default value of the checkbox column is false. When the user checks checkbox the column value will become true. Now if the user change the checkbox value from true to false(by unchecking it), i should delete(remove) the current row from the datagrid. Through CurrencyManager i can delete the row, But after every code executes, I'm getting error "No value at index xx" where 'xx' will be row count of datagrid. Can anybody help me? Keshav

amin gunawan
Replied On July 12, 2005 02:21 AM UTC

Hi, I''ve same problem as you are. I guest the problem is because the value of the CurrentRowIndex property of the datagrid contents number of the row position in datagrid you wanna delete. Just guest, still don''t know to solve it. >I have a Datagrid with four columns. the last column is of style checkbox(DataGridBoolColumn). The default value of the checkbox column is false. When the user checks checkbox the column value will become true. Now if the user change the checkbox value from true to false(by unchecking it), i should delete(remove) the current row from the datagrid. Through CurrencyManager i can delete the row, But after every code executes, I''m getting error "No value at index xx" where ''xx'' will be row count of datagrid. > >Can anybody help me? >Keshav

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;