PC Review


Reply
Thread Tools Rate Thread

DataSet Binding

 
 
Ghost
Guest
Posts: n/a
 
      4th Aug 2004
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 ?


 
Reply With Quote
 
 
 
 
Tim Wilson
Guest
Posts: n/a
 
      4th Aug 2004
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/de...itiontopic.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/...ity/newsgroups
</Feedback>

"Ghost" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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 ?
>
>



 
Reply With Quote
 
Ghost
Guest
Posts: n/a
 
      4th Aug 2004
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 ?


"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:(E-Mail Removed)...
> 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/de...us/cpref/html/
frlrfsystemwindowsformsbindingmanagerbaseclasspositiontopic.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/...ity/newsgroups
> </Feedback>
>
> "Ghost" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> > 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 ?
> >
> >

>
>



 
Reply With Quote
 
Tim Wilson
Guest
Posts: n/a
 
      4th Aug 2004
VB or C#?

--
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/...ity/newsgroups
</Feedback>

"Ghost" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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 ?
>
>
> "Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
> news:(E-Mail Removed)...
> > 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/de...us/cpref/html/
> frlrfsystemwindowsformsbindingmanagerbaseclasspositiontopic.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/...ity/newsgroups
> > </Feedback>
> >
> > "Ghost" <(E-Mail Removed)> wrote in message
> > news:%(E-Mail Removed)...
> > > 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 ?
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Ghost
Guest
Posts: n/a
 
      4th Aug 2004
in C# please.

"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:(E-Mail Removed)...
> VB or C#?
>
> --
> 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/...ity/newsgroups
> </Feedback>
>
> "Ghost" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > 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 ?
> >
> >
> > "Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in

message
> > news:(E-Mail Removed)...
> > > 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/de...us/cpref/html/
> > frlrfsystemwindowsformsbindingmanagerbaseclasspositiontopic.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/...ity/newsgroups
> > > </Feedback>
> > >
> > > "Ghost" <(E-Mail Removed)> wrote in message
> > > news:%(E-Mail Removed)...
> > > > 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 ?
> > > >
> > > >
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Tim Wilson
Guest
Posts: n/a
 
      4th Aug 2004
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/...ity/newsgroups
</Feedback>

"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:(E-Mail Removed)...
> Unzip and run the attached solution to see an example in C#.
>
> --
> 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/...ity/newsgroups
> </Feedback>
>
>
>



 
Reply With Quote
 
Ghost
Guest
Posts: n/a
 
      5th Aug 2004
Thank you Sir.
I will see it.

"Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
news:#(E-Mail Removed)...
> 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/...ity/newsgroups
> </Feedback>
>
> "Tim Wilson" <TIM(UNDERSCORE)WILSON(AT)ROGERS(PERIOD)COM> wrote in message
> news:(E-Mail Removed)...
> > Unzip and run the attached solution to see an example in C#.
> >
> > --
> > 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/...ity/newsgroups
> > </Feedback>
> >
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding to a DataSet with more than one DataTable =?Utf-8?B?RGljaw==?= Microsoft ASP .NET 9 7th Feb 2007 08:07 AM
help binding a dataset Jake Smythe Microsoft VB .NET 2 17th Nov 2005 08:03 AM
Binding to DataSet sck10 Microsoft ASP .NET 2 4th Nov 2004 01:36 AM
Re: Dataset Binding Brian Parlier Microsoft ADO .NET 1 16th Mar 2004 08:21 PM
BUG in Dataset Binding?? Juergen Bronn Microsoft Dot NET Framework Forms 0 17th Jul 2003 11:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:56 AM.