<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Search results matching tag 'GridView'</title><link>http://forums.asp.net/search/SearchResults.aspx?q=&amp;tag=GridView&amp;orTags=0&amp;o=DateDescending</link><description>Search results matching tag 'GridView'</description><dc:language>en-US</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Gridview row_updated event - Need to get updated email address and then send an email on gridview update</title><link>http://forums.asp.net/thread/3575361.aspx</link><pubDate>Sun, 20 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3575361</guid><dc:creator>shawn.bordeaux</dc:creator><description>&lt;p&gt;I have a basic gridview that has customers information. When a manager edit&amp;#39;s a&amp;nbsp;row I would like an email to be fired off that has the changes that were made. One of the fields that changes can be made to is the customers email address.&lt;/p&gt;
&lt;p&gt;I have the email&amp;nbsp;part working fine but when I try to get the&amp;nbsp;updated values of the textboxs is where I always run into errors.&amp;nbsp;What command in VB would I need to set a variable such as ; Dim Email As String = findcontrol(&amp;quot;email&amp;quot;, TextBox).text&amp;nbsp; ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have the edit fields as templates in the gridview and their text boxes are like this, &lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;&amp;lt;asp:TextBox ID=&amp;quot;email&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;#39;&amp;lt;%# Bind(&amp;quot;email&amp;quot;) %&amp;gt;&amp;#39;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;
&amp;lt;asp:TextBox ID=&amp;quot;TextBox7&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;#39;&amp;lt;%# Bind(&amp;quot;appointment_date&amp;quot;) %&amp;gt;&amp;#39; /&amp;gt; &lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is what I have emailing so far;&lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;    Protected Sub GridView3_RowUpdated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewUpdatedEventArgs) Handles GridView3.RowUpdated
        &amp;#39;send an email when the gridview is updated
        Const ToAddress As String = &amp;quot;test@test.com&amp;quot;  &amp;#39; need to set this as customers email that we pull from the gridview
        Const UsersEmail As String = &amp;quot;NoReply@justrightreferralnetwork.com&amp;quot;
        &amp;#39;(1) Create the MailMessage instance
           
        Dim email As String = CType(GridView3.FindControl(&amp;quot;email&amp;quot;), TextBox).Text   &amp;#39; This is not working get an error everytime
        &amp;#39; for the time being set up usersemail as a known address 
        Dim mm As New MailMessage(UsersEmail, ToAddress)

        &amp;#39;(2) Assign the MailMessage&amp;#39;s properties
        Dim Subject As String = &amp;quot;Message from the Just Right Referral Network&amp;quot;
        Dim Body As String = &amp;quot;There is updated information about your account. Please login to view the changes.&amp;quot;


        mm.Subject = Subject
        mm.Body = Body
        mm.IsBodyHtml = False

        &amp;#39;(3) Create the SmtpClient object
        Dim smtp As New SmtpClient

        &amp;#39;(4) Send the MailMessage (will use the Web.config settings)
        smtp.Send(mm)
    End Sub&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;Thank you everyone and best regards!&lt;/p&gt;
&lt;p&gt;Shawn&lt;/p&gt;</description></item><item><title>Displaying data from CSV file in GridView</title><link>http://forums.asp.net/thread/3573886.aspx</link><pubDate>Sat, 19 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3573886</guid><dc:creator>ptownbro</dc:creator><description>&lt;p&gt;I&amp;#39;m trying to display data from a CSV file into a GridView control and it&amp;#39;s not working.&amp;nbsp; The code does NOT error out, but for some reason the data isn&amp;#39;t being displayed in the GridView.&amp;nbsp; What am I doing wrong?&lt;/p&gt;
&lt;p&gt;Code:&lt;/p&gt;

&lt;p&gt;&lt;pre name="code" class="vb.net"&gt;Sub Button1_OnClick(Sender As Object, e As EventArgs)
   &amp;#39;Declare Variables
	Dim fsName, fsObject, fsText, fsArray
	Dim myDTable As DataTable = New DataTable
	Dim myDRow As DataRow = myDTable.NewRow

   &amp;#39;Add Column(s) to GridView
	myDTable.Columns.Add(&amp;quot;Column02&amp;quot;)

   &amp;#39;Read CSV file
	fsName = Server.MapPath(docPathImports) &amp;amp; &amp;quot;test.csv&amp;quot;
	fsObject = fs.OpenTextFile(fsName)
	
   &amp;#39;Read Field Header
	fsText = fsObject.readLine

   &amp;#39;Read Data
	Do While Not fsObject.AtEndOfStream
		fsText = fsObject.readLine
		fsArray = split(fsText, &amp;quot;,&amp;quot;)
	
	    If i &amp;gt; 0 Then
	        myDRow.ItemArray = split(fsText, &amp;quot;,&amp;quot;)
	        myDTable.Rows.Add(myDRow)
	        myDRow = myDTable.NewRow
	    End If
	    i += 1
	
	    GridView1.DataSource = myDTable
	    GridView1.DataBind()
	Loop
	
   &amp;#39;Close Objects
	fsObject.Close
	fsObject = Nothing
	fs = Nothing
End Sub
&lt;/pre&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Html:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;pre name="code" class="xhtml"&gt;&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
&amp;lt;/head&amp;gt;

&amp;lt;body&amp;gt;

&amp;lt;form id=&amp;quot;Form1&amp;quot; method=&amp;quot;post&amp;quot; encType=&amp;quot;multipart/form-data&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;

&amp;lt;asp:Button id=&amp;quot;Button1&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Display CSV&amp;quot; OnClick=&amp;quot;Button1_OnClick&amp;quot; /&amp;gt;

	&amp;lt;asp:GridView runat=&amp;quot;server&amp;quot;
	id=&amp;quot;GridView1&amp;quot; 
	AutoGenerateColumns=&amp;quot;False&amp;quot; 
	Width=&amp;quot;100%&amp;quot; 
	CellPadding=&amp;quot;3&amp;quot; 
	BorderStyle=&amp;quot;Solid&amp;quot; &amp;gt;
&amp;lt;/asp:GridView&amp;gt;

&amp;lt;/form&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;&lt;/pre&gt;&lt;p&gt;&lt;br /&gt; &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Prevent user from selecting row that is either in edit or select mode?</title><link>http://forums.asp.net/thread/3574673.aspx</link><pubDate>Sat, 19 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3574673</guid><dc:creator>shawn.bordeaux</dc:creator><description>&lt;p&gt;I have a simple sub that changes the colors of the rows in the gridview when the user moves their cursor around them. When the user clicks anywhere in a row it jumps them directly to the row edit feature. The problem is if the user for somereason clicks in that same row while the edit row is displayed the application reports&amp;nbsp;the error;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;i&gt;Invalid postback or callback argument. &amp;nbsp;Event validation is enabled using &amp;lt;pages enableEventValidation=&amp;quot;true&amp;quot;/&amp;gt; in configuration or &amp;lt;%@ Page EnableEventValidation=&amp;quot;true&amp;quot; %&amp;gt; in a page. &amp;nbsp;For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. &amp;nbsp;If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.&lt;/i&gt; &amp;quot;&lt;/p&gt;
&lt;p&gt;So basically I am trying to find a way to prevent the user from double selecting one of these rows. I thought I could add sometype of conditional statement to either the javascript or the sub to check if the row has already been selected but I am not sure how to do it. Any help would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;The sub;&lt;/p&gt;&lt;pre class="vb.net" name="code"&gt;    Protected Sub GridView3_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView3.RowDataBound
        &amp;#39; this sub is used so we can select rows in the gridview without using the select button
        If e.Row.RowType = DataControlRowType.DataRow Then
            e.Row.Attributes.Add(&amp;quot;onmouseover&amp;quot;, &amp;quot;this.style.cursor=&amp;#39;hand&amp;#39;;this.style.backgroundColor=&amp;#39;lightpink&amp;#39;;&amp;quot;)
            e.Row.Attributes.Add(&amp;quot;onmouseout&amp;quot;, &amp;quot;this.style.backgroundColor=&amp;#39;&amp;#39;;&amp;quot;)
            e.Row.Attributes.Add(&amp;quot;onclick&amp;quot;, Page.ClientScript.GetPostBackEventReference(sender, &amp;quot;Edit$&amp;quot; + e.Row.RowIndex.ToString))
        End If
    End Sub&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Shawn&lt;/p&gt;</description></item><item><title>selecting an item from a gridview control and passing to next page</title><link>http://forums.asp.net/thread/3572704.aspx</link><pubDate>Fri, 18 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3572704</guid><dc:creator>mattsgrandad</dc:creator><description>&lt;p&gt;&amp;nbsp;I have agridview control in which I have a &amp;#39;Next page&amp;#39; button as well as data from an SQLDataSource dataset.&lt;/p&gt;
&lt;p&gt;What I&amp;#39;m trying to do is to pass control to the next page when that button is pressed and to pass with it one of the data items from the selected gridview row.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve seen various posts on passing data between web pages but, because I&amp;#39;m not a web or SQL expert, most of it doesn&amp;#39;t make a great deal of sense to me.&lt;/p&gt;
&lt;p&gt;has anyone got a simple example that I could copy that shows where code needs to be&amp;nbsp;in the sending page and the receiving page&amp;nbsp;for both&amp;nbsp;the aspx page code and&amp;nbsp;the aspx.vb code&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;</description></item><item><title>Linq - SQL to GridView</title><link>http://forums.asp.net/thread/3571402.aspx</link><pubDate>Thu, 17 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3571402</guid><dc:creator>lookitstony</dc:creator><description>&lt;p&gt;I guess I am having a hard time understanding this. I create the Grid view and I link it to the SQL-Linq datacontext and if I select all fields then the gridview works. I then cut down what fields I want to show directly in the grid view. Now I go into my Linqdatasource and moditfy the selecting event to build my custom &amp;quot;where&amp;quot; clause and everything still works. Now instead of doing r.paymentstatus and getting a &amp;quot;1&amp;quot; I want to do r.tblpaymentstatus.paymentstatus so it retrieves the actual status instead of the number. As long as I do my select for every field in the datasource it works but if I limit down to only the fields I have showing in the gridview I get errors. They range from &amp;quot;anonymous&amp;lt;2&amp;gt; type mismatch&amp;quot; to another long error I will put below.&lt;/p&gt;&lt;p&gt;Goal: To select what fields i want to view and allow them to be editable. I want the tables that are referenced to show the data instead of the reference number. I am also thinkign about making template fields so I can arrange the data differently.. How can I get the r.table.field to populate instead of r.field inside a databound control in the template?&lt;/p&gt;&lt;p&gt;ERROR:System.Web.HttpException: DataBinding: 
&amp;#39;&amp;lt;&amp;gt;f__AnonymousType0`9[[System.Nullable`1[[System.DateTime, mscorlib, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, 
Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, 
Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[System.Nullable`1[[System.DateTime, mscorlib, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, 
Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[System.Nullable`1[[System.DateTime, mscorlib, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, 
Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[System.Nullable`1[[System.Decimal, mscorlib, 
Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], mscorlib, 
Version=2.0.0.0, Culture=neutral, 
PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=2.0.0.0, 
Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, 
Version=2.0.0.0,...&amp;#39; does not contain a property with the name 
&amp;#39;ReImbursementInfoID&amp;#39;&lt;/p&gt;&lt;p&gt;&lt;pre name="code" class="c-sharp"&gt;C# Code:
protected void ldsReimbursement_Selecting(object sender, LinqDataSourceSelectEventArgs e)
    {
        PatientDataContext db = new PatientDataContext();

        var query = from r in db.tblReimbursementInfos
                    where r.SSN == dvPatient.Rows[3].Cells[1].Text
                    select new
                      {
                          Delivery_Date = r.Delivery_Date,
                          DeliveryType = r.tlkpDeliveryType.DeliveryType,
                          EDC = r.EDC,
                          EnrollmentDate = r.EnrollmentDate,
                          Physician_Reimbursement = r.Physician_Reimbursement,
                          PaymentStatus = r.tblPaymentStatus.PaymentStatus,
                          Notes = r.Notes,
                          DeliveryTypeID = r.DeliveryTypeID,
                          EnteredBy = r.EnteredBy


                      };

        e.Result = query;
    }&lt;/pre&gt;&lt;br /&gt; &lt;pre name="code" class="c-sharp"&gt;ASP.NET Code:
&amp;lt;asp:View ID=&amp;quot;vwEnrollment&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
                    &amp;lt;asp:GridView ID=&amp;quot;gvReimbursement&amp;quot; runat=&amp;quot;server&amp;quot; AutoGenerateColumns=&amp;quot;False&amp;quot; 
                        CellPadding=&amp;quot;4&amp;quot; DataKeyNames=&amp;quot;ReImbursementInfoID&amp;quot; 
                        DataSourceID=&amp;quot;ldsReimbursement&amp;quot; ForeColor=&amp;quot;#333333&amp;quot; GridLines=&amp;quot;None&amp;quot;&amp;gt;
                        &amp;lt;RowStyle BackColor=&amp;quot;#EFF3FB&amp;quot; /&amp;gt;
                        &amp;lt;Columns&amp;gt;
                            
                            &amp;lt;asp:BoundField DataField=&amp;quot;Delivery_Date&amp;quot; HeaderText=&amp;quot;Delivery&amp;quot; /&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;DeliveryType&amp;quot; HeaderText=&amp;quot;DeliveryType&amp;quot; /&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;EDC&amp;quot; HeaderText=&amp;quot;EDC&amp;quot;/&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;Physician_Reimbursement&amp;quot; HeaderText=&amp;quot;Physician_Reimbursement&amp;quot;/&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;EnrollmentDate&amp;quot; HeaderText=&amp;quot;Enrolled&amp;quot; /&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;Notes&amp;quot; HeaderText=&amp;quot;Notes&amp;quot; /&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;PaymentStatus&amp;quot; HeaderText=&amp;quot;Payment Status&amp;quot; /&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;DeliveryTypeID&amp;quot; HeaderText=&amp;quot;DeliveryTypeID&amp;quot; /&amp;gt;
                            &amp;lt;asp:BoundField DataField=&amp;quot;EnteredBy&amp;quot; HeaderText=&amp;quot;Entered By&amp;quot; /&amp;gt;
                            
                        &amp;lt;/Columns&amp;gt;
                        &amp;lt;FooterStyle BackColor=&amp;quot;#507CD1&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;White&amp;quot; /&amp;gt;
                        &amp;lt;PagerStyle BackColor=&amp;quot;#2461BF&amp;quot; ForeColor=&amp;quot;White&amp;quot; HorizontalAlign=&amp;quot;Center&amp;quot; /&amp;gt;
                        &amp;lt;SelectedRowStyle BackColor=&amp;quot;#D1DDF1&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;#333333&amp;quot; /&amp;gt;
                        &amp;lt;HeaderStyle BackColor=&amp;quot;#507CD1&amp;quot; Font-Bold=&amp;quot;True&amp;quot; ForeColor=&amp;quot;White&amp;quot; /&amp;gt;
                        &amp;lt;EditRowStyle BackColor=&amp;quot;#2461BF&amp;quot; /&amp;gt;
                        &amp;lt;AlternatingRowStyle BackColor=&amp;quot;White&amp;quot; /&amp;gt;
                    &amp;lt;/asp:GridView&amp;gt;&lt;/pre&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; I have changed the code so many times tryign to figure out how to get this to work.. so this may not look right because it has been completely mutilated.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks for the help if anyone can help!&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Tooltip on gridview</title><link>http://forums.asp.net/thread/3571419.aspx</link><pubDate>Thu, 17 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3571419</guid><dc:creator>PeteNet</dc:creator><description>&lt;p&gt;IF you have to use BoundFields you can apply the tooltip to the whole row (not just a column) by using the tooltip property of the row:&lt;/p&gt;&lt;p&gt;e.Row.ToolTip = &amp;quot;something&amp;quot; and you could do this in the RowDataBound event:&lt;/p&gt;&lt;p&gt;protected void GridView1_RowDataBound(object sender, System.Web.UI.WebControls.GridViewRowEventArgs e)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (e.Row.RowType == DataControlRowType.DataRow) {&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;e.Row.ToolTip = DataBinder.Eval(e.Row.DataItem, &amp;quot;ItemDescription&amp;quot;, string.Empty);&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;}&lt;/p&gt;&lt;p&gt;Check Mike&amp;#39;s post here: &lt;a href="http://forums.asp.net/t/1456738.aspx"&gt;http://forums.asp.net/t/1456738.aspx&lt;/a&gt; &lt;/p&gt;&lt;p&gt;IF you have to use a single column then you will have to use a templatefield (and set the AutoGenerateColumns property to false) &lt;/p&gt;&lt;p&gt;&amp;lt;asp:templatefield&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;itemtemplate&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:label runat=&amp;quot;server&amp;quot; text=&amp;#39;&amp;lt;%# Eval ( &amp;quot;Description&amp;quot; ) %&amp;gt;&amp;#39; &lt;b&gt;tooltip=&amp;#39;&amp;lt;%# Eval ( &amp;quot;Description&amp;quot; ) %&amp;gt;&amp;#39; &lt;/b&gt;/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;lt;/itemtemplate&amp;gt;&lt;br /&gt;
&amp;lt;/asp:templatefield&amp;gt;&lt;/p&gt;&lt;p&gt;for restricting words you could use the split (on spaces) method on the string making up the description and use the first few items (of the array which results) for the text property and the remaining as the tooltip. something like&lt;/p&gt;&lt;p&gt;mystring = StringFromDataBase.Substring(0, 100);&amp;nbsp;&amp;nbsp; //take the first hundred characters for example (check for length before!)&lt;br /&gt;string[] vals = mystring.Split[&amp;#39; &amp;#39;];&lt;br /&gt;string words = vals[0] + &amp;quot; &amp;quot; + vals[1] ............;&lt;/p&gt;&lt;p&gt;some split examples here: http://dotnetperls.com/string-split&lt;/p&gt;&lt;p&gt;you may want to try this cool extender too: &lt;a href="http://devarchive.net/advanced-tooltip-control-asp-net-ajax.aspx"&gt;http://devarchive.net/advanced-tooltip-control-asp-net-ajax.aspx&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>GridView Databound </title><link>http://forums.asp.net/thread/3567936.aspx</link><pubDate>Wed, 16 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3567936</guid><dc:creator>ahmad hajou</dc:creator><description>&lt;p&gt;I have a&amp;nbsp;GridView that im filling according to a Post Variable inside the databinding wizard.&lt;/p&gt;
&lt;p&gt;This variable is lost after the&amp;nbsp;page is&amp;nbsp;Post Back&amp;nbsp;using an ASP.net control, is there a way to repass that variable to the Grid someway?&lt;/p&gt;
&lt;p&gt;Any idea?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;</description></item><item><title>Re: Gridview, objectdatasource, multiple datatables in dataset</title><link>http://forums.asp.net/thread/3568100.aspx</link><pubDate>Wed, 16 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3568100</guid><dc:creator>bmoyno</dc:creator><description>&lt;p&gt;Thanks for the suggestion PeteNet, but I get same message as if I declared &amp;#39;DataMember&amp;#39; declaritively ...&lt;/p&gt;&lt;p&gt;The data source &amp;#39;odsReport&amp;#39; only supports a single view named &amp;#39;DefaultView&amp;#39;. You may also leave the view name (also called a data member) empty for the default view to be chosen.&lt;br /&gt;Parameter name: viewName&lt;/p&gt;&lt;p&gt;Any other ideas?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>How to show 'e-Mail' instead of the actual e-mail address for a database field but nothing if the field does not contain an e-mail address?</title><link>http://forums.asp.net/thread/3569694.aspx</link><pubDate>Wed, 16 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3569694</guid><dc:creator>SouthendSupporter</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;
I am using the following code in a Gridview to display a link to
generate an e-mail to an email address obtained from a database:&lt;br /&gt;&lt;/p&gt;
&lt;div style="margin:5px 20px 20px;"&gt;
&lt;div style="margin-bottom:2px;"&gt;Code:&lt;/div&gt;
&lt;pre style="border:1px inset;margin:0px;padding:6px;overflow:auto;width:auto;height:130px;text-align:left;"&gt;&amp;lt;asp:TemplateField HeaderText=&amp;quot;Email&amp;quot;&amp;gt;&lt;br /&gt;&amp;lt;ItemTemplate&amp;gt;&lt;br /&gt;&amp;lt;asp:HyperLink ID=&amp;quot;EmailLink&amp;quot; text=&amp;#39;text=&amp;#39;&amp;lt;%# bind(&amp;quot;eMail&amp;quot;) %&amp;gt;&amp;#39;&amp;#39; &lt;br /&gt;NavigateUrl=&amp;#39;&amp;lt;%# Eval(&amp;quot;eMail&amp;quot;,&amp;quot;mailto:{0}?Subject=Enquiry from Cobham Chamber Website&amp;quot;)%&amp;gt;&amp;#39; &lt;br /&gt;runat=&amp;quot;server&amp;quot;&lt;br /&gt;target=&amp;quot;_blank&amp;quot; /&amp;gt;&lt;br /&gt;&amp;lt;/ItemTemplate&amp;gt;&lt;/pre&gt;
&lt;/div&gt;&lt;p&gt;This works just fine, displaying an e-mail address if one exists and not if it doesn&amp;#39;t.&lt;/p&gt;&lt;p&gt;BUT..&lt;/p&gt;&lt;p&gt;I am restricted in width and the
email address that will be displayed by using text=&amp;#39;&amp;lt;%#
Bind(&amp;quot;eMail&amp;quot;) %&amp;gt;&amp;#39; is too long.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;
I have tried using text=&amp;#39;e-Mail&amp;#39; as an alternative. This shortens the field, displays as a link when the database field contains an e-mail but displays as plain text when it does not.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
&lt;br /&gt;
Can I hide the text when there is no data in the field?&lt;/p&gt;</description></item><item><title>Re: Conflict in Editing in Listview and Search function</title><link>http://forums.asp.net/thread/3569872.aspx</link><pubDate>Wed, 16 Dec 2009 05:00:00 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3569872</guid><dc:creator>nencarnacion</dc:creator><description>&lt;p&gt;How do i do this? how do i&amp;nbsp;check for the&amp;nbsp;gridview cells index?&lt;/p&gt;
&lt;p&gt;What i did was i compared the positions of the&amp;nbsp;columns and they&amp;nbsp;are all&amp;nbsp;correct. in &lt;strong&gt;column&amp;nbsp;0&lt;/strong&gt; is the edit/delete buttons. and the Billcode starts at &lt;strong&gt;column 1. &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Is there another way?&lt;/p&gt;</description></item></channel></rss>