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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Help required for DataGrid in asp.net

Thread ID:




29989 Jun 8,2005 03:25 PM UTC ASP.NET Web Forms (Classic) 0
Tags: FAQ
Asked On June 8, 2005 03:25 PM UTC

I want to retreive columnheader value which bound for sql in datagrid in asp.net. I have used the following code for retreiving header text. dim i as integer dim j as integer j=DataGrid1.Columns.count-2 for i = 1 to j Response.write(DataGrid1.Columns.item(i).HeaderText) Response.write(DataGrid1.DataGridItem.Items(i).ItemType) Next But it is showing an error at "Response.write(DataGrid1.DataGridItem.Items(i).ItemType)" I have also tried with Response.write(DataGrid1.columns.Items(i).DataField).But nothing is helpful.How can i get the bound value from Datagrid columns.Thanks in advance.Please help me.


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon