DataSet Binding

  • Thread starter Thread starter Ghost
  • Start date Start date
G

Ghost

I have DataGrid and toolbar with navigation keys.
Can anybody show me an example how do I make Binding with my navigation
keys?

I want to make these actions at runtime go to the first/prior/next/last
record, also I want get record wich is selected in DataGrid.

How do I program these ?
 
To get the BindingManagerBase for the DataGrid use the DataGrid instances
BindingContext property.
You should be able to use the Position property on the BindingManagerBase
object.
To get a reference to the currently selected row use the Current property on
the BindingManagerBase object.

For a navigation-type example see here.
http://msdn.microsoft.com/library/d...formsbindingmanagerbaseclasspositiontopic.asp

--
Tim Wilson
..Net Compact Framework MVP

<Feedback>
Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
</Feedback>
 
Something is wrong, when I change Position the grid record don't move to
next record:( and Positon is always 0.
Can you show me how do I get the BindingManagerBase for the DataGrid use the
DataGrid instances
BindingContext property ?
 
I forgot to modify the content of the "DataGridNagivateTo" method to ensure
that it's allowing you to pass in a DataGrid. So inside this method change
all the instances of "this.dataGrid1" to "grid".

--
Tim Wilson
..Net Compact Framework MVP

<Feedback>
Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
</Feedback>
 
Thank you Sir.
I will see it.

Tim Wilson said:
I forgot to modify the content of the "DataGridNagivateTo" method to ensure
that it's allowing you to pass in a DataGrid. So inside this method change
all the instances of "this.dataGrid1" to "grid".

--
Tim Wilson
.Net Compact Framework MVP

<Feedback>
Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
</Feedback>
 
Back
Top