Another Datagrid thing

M

MadCrazyNewbie

Hey again Group,

Sorry to keep been a pain but ..............

I have the following code:

If Me.BindingContext(objdsAccess, "Users").Position <> -1 And Not mlLoading
Then
objdsAccess.Users.Rows(Me.BindingContext(objdsAccess,
"Users").Position).Item("AccessLevelID") = Me.ComboBox1.SelectedValue
End If

What would the Equivilant be if I wanted to use it in a Datagrid? I changed
Me.datagrid1.SelectedValue

But it error saying: D:\Test Apps\App1New\DataForm1.vb(558): 'SelectedValue'
is not a member of 'System.Windows.Forms.DataGrid'.

Could anybody possible help?

Many Thanks
MCN
 
M

MadCrazyNewbie

Sorry Im confusing my self now (Not Hard)

Sorry it this code for my position changed:

If Me.BindingContext(objdsAccess, "Users").Position <> -1 Then
Me.DataGrid1.SelectedValue =
objdsAccess.Users.Rows(Me.BindingContext(objdsAccess,
"Users").Position).Item("AccessLevelID")
End If

But I think I need to change it for both bits of code, its the same error if
I change the above.

Many Thanks
Si
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sorry to Re-Post - Databindings problem 11
Sorry but Repost again - Databindings 4
Null & DBNULL Problems 4
Data Error 20
DataRow - How To? 13
DBNUL Errors Continued 4
Dataset NOT Updating 15
datagrid question 3

Top