Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
Retrieve Data from WebDataGrid.Rows
posted

I need to retrieve the data contained inside a WebDataGrid.  What is the best way to do it?

At first I thought I could do something like this below (ADO.NET DataTable style) :

foreach (Infragistics.Web.UI.GridControls.GridRecord rec in WebDataGrid1.Rows)
{
     rec[
"MyColumn"];  // Do something with the value here
}

I know I can get the value using the column index rec.Items[0].Value .  Is there a way I can use the column Key name?

Thanks

Daniel