473,320 Members | 2,027 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Get data directly from DataGrid

_A
I'd like to retrieve items directly from a DataGrid rather than from the
source (data table). The goal is to retrieve a field in the Datagrid's
current sort order.

Is there an easy way to do this?

Nov 16 '05 #1
4 3265
_A
I'd like to retrieve items directly from a DataGrid rather than from the
source (data table). The goal is to retrieve a field in the Datagrid's
current sort order.

Is there an easy way to do this?

Nov 16 '05 #2
Are you binding a table view to the datagrid (in order to sort)? If so, then
use the table view and iterate through it.

"_A" <_A@nospam.com> wrote in message
news:dt********************************@4ax.com...
I'd like to retrieve items directly from a DataGrid rather than from the
source (data table). The goal is to retrieve a field in the Datagrid's
current sort order.

Is there an easy way to do this?

Nov 16 '05 #3
> I'd like to retrieve items directly from a DataGrid rather than from the
source (data table). The goal is to retrieve a field in the Datagrid's
current sort order.

Is there an easy way to do this?

With a webform datagrid: Yes
With a windowform datagrid: No

However when you use with the last the dataview and the currencymanager
there is not any problem to get that, you are not the only one who is making
programs using the windowforms datagrid you know.

I hope this gives some idea's

Cor
Nov 16 '05 #4
If I understand you correctly then Sure. You can just reference the grid
directly ie dataGrid1[0,2] would give you the value of the 0th row, second
column. If you are trying to determine what's the sort column currently,
you can bind to a DataView and access its .Sort property (conversely, you
can set this too without making the users click on the header by specifying
the sort field.

--
W.G. Ryan MVP Windows - Embedded

Have an opinion on the effectiveness of Microsoft Embedded newsgroups?
Let Microsoft know!
https://www.windowsembeddedeval.com/...ity/newsgroups
"_A" <_A@nospam.com> wrote in message
news:dt********************************@4ax.com...
I'd like to retrieve items directly from a DataGrid rather than from the
source (data table). The goal is to retrieve a field in the Datagrid's
current sort order.

Is there an easy way to do this?

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Nedu N | last post by:
Hi, I want to display the XML tags (for the the XML tags is the data that is stored in a table) on the datagrid using the datasets. But since the data itself is the XML tag it doesn't appera on...
4
by: Greg Linwood | last post by:
I am wondering what the best approach to binding XML data to an asp:Table from the Page_Load event in a code behind module? I'm using VB.Net and initially approached this by adding a table to the...
4
by: hope | last post by:
Hi, How can I format a string field using Data Formatting Expression property in datagrid? For example: format last name from BROWN to Brown. Thanks
6
by: needin4mation | last post by:
I have a set of textboxes. If it is a new record the textboxes are empty and there is a save button. If this is an existing record, I have a search form, a datagrid and the user selects form the...
7
by: BS | last post by:
Hello everybody I'm calling a webservice that returns complex data. The goal is to populate a datagrid with it. Using a loop for each record found ( such as For i = 0 To...
0
by: Art | last post by:
Hi, I'd appreciate any help or any references to aid me in working with a datagrid. I'd like to be able to enter data through a data grid. I'm using an Access database. I'm not sure about...
0
by: danishce | last post by:
Hello, I want to insert data directly into my windows form data grid and load a combobox(userid) in the 1st column of data grid,a textbox(password) in 2nd column of datagrid. The code for insert...
8
by: Brock | last post by:
I am trying to populate a Crystal Report from data in my DataGrid. The reason for this is that I want the user to be able to change values without updating the database, but still have their report...
6
by: insirawali | last post by:
Hi all, I have this problem, i need to know is there a way i cn use the data adapter's update method in this scenario. i have 3 tables as below create table table1{ id1 int identity(1,1)...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.