Hello All.
I am having a problem
In my source code i connected with MS access database
and i am using datagrid and trying to edit and delete the record.
but it's giving Index out of range error.
i am using MS access first time
is there any other method to use datagrid with MS access database .
I am very confused
Please solve my problem ....
Loading
Amit ChoudharyPosted Mar 3, 2010, 5:00 AM
Please post the error with stack trace.... i can help you
Amit ChoudharyPosted Mar 3, 2010, 8:08 AM
Always mark the post as answer if it helps you. It benefit others to get the quick solution for resembling problems.
Best regards
tanuPosted Mar 3, 2010, 6:28 AM
thanks a lot..
i totally forget abt that ..
thx a lot....
tanuPosted Mar 3, 2010, 6:28 AM
thanks a lot..
i totally forget abt that ..
thx a lot....
Amit ChoudharyPosted Mar 3, 2010, 6:04 AM
my guess was right after seeing your code i have doubt on the line where you are accessing the datakey....
after looking at your code inside the project found the error that you did'nt specify the DatakeyField value in your Grid.
oncancelcommand="DataGrid1_CancelCommand" DataKeyField="ID" oneditcommand="DataGrid1_EditCommand"
onupdatecommand="DataGrid1_UpdateCommand"
ondeletecommand="DataGrid1_DeleteCommand"
onpageindexchanged="DataGrid1_PageIndexChanged"
AutoGenerateColumns=false Height="290px" Width="437px">
Add this attribute value as above. and your error get resolved.
Please don't forget to mark the answer.
tanuPosted Mar 3, 2010, 5:19 AM
I am sending my whole code with database..
Please check it and tell me where i m wrong.?
thanks.
tanuPosted Mar 3, 2010, 5:16 AM
First of all thx for reply..
this is the stack trace ..
u can check like this or i should upload the full code??
thx again
kiran kumarPosted Mar 3, 2010, 4:49 AM