We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Retrieving values from a datagrid

Thread ID:

Created:

Updated:

Platform:

Replies:

28991 May 13,2005 08:05 AM Dec 20,2005 07:40 AM Windows Forms 1
loading
Tags: FAQ
nossah
Asked On May 13, 2005 08:05 AM

I select values from the database and display them in a grid but first I apply formatting to the values. So from the database I may get the value 5236.2389 but the grid may display $5236.24 due to my formatting. What I want to do is retrieve the value that is displayed in the grid ($5236.24). All efforts so far of trying to access the data either from the dataset or the datagrid will yield the 5236.2389 value and not the formatted value. I think I need something like datagrid.Cell[1,2].FormattedValue. There has to be a way, I just can''t figure it out. Thanks in advance.

Administrator [Syncfusion]
Replied On December 20, 2005 07:40 AM

HI Use dgrdataGrid1[0,1].ToString() to obtain value >I select values from the database and display them in a grid but first I apply formatting to the values. So from the database I may get the value 5236.2389 but the grid may display $5236.24 due to my formatting. > >What I want to do is retrieve the value that is displayed in the grid ($5236.24). All efforts so far of trying to access the data either from the dataset or the datagrid will yield the 5236.2389 value and not the formatted value. > >I think I need something like datagrid.Cell[1,2].FormattedValue. There has to be a way, I just can''t figure it out. > >Thanks in advance.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;