Iron Speed Technical Forums
Register Latest Topics
 
 
 


Reply
  Author   Comment  
Eliandul

Registered:
Posts: 2
Reply with quote  #1 
Hi, 
why ISD only know the follow code 
http://www.ironspeed.com/Designer/10.2.1/WebHelp/Part_V/Adding_an_ASP_NET_DataGrid_Control_to_a_Web_Page.htm

<asp[biggrin]atagrid id="myDataGrid" OnItemDataBound= "MyItemDataBound" runat="server">

     <HeaderStyle BackColor = "#336699" ForeColor = "#ffffff" Font-Bold = "true" />

     <AlternatingItemStyle BackColor = "#eeeeee" />

</asp[biggrin]atagrid>

and cant not insert a TeplateColumn

<asp:TemplateColumn HeaderText="Accept">
<ItemTemplate>
<asp:CheckBox ID="chkRow" runat="server" />
</ItemTemplate>
</asp:TemplateColumn>

anny sugestion..
thanks

Eliandul

Registered:
Posts: 2
Reply with quote  #2 
........ this %$%# now work ... [confused]
JimiJ

Avatar / Picture

MVP Developer
Registered:
Posts: 1,948
Reply with quote  #3 
 You may also enhance further the color indicators based on other metrics like Posted and Authorized status of the Transactions as follows:     

  // Find the record row the field value is on.
        System.Web.UI.HtmlControls.HtmlTableRow recordRow;
        recordRow = (System.Web.UI.HtmlControls.HtmlTableRow)this.FindControl("MyTR");

   // Set the default background color on the record row in RGB format.
        string color = "#ffff00";  

   if (!this.IsAuthorized.Text.Equals("Yes") && !this.IsPosted.Text.Equals("Yes"))
    {
       
        // Set the background color on the record row in RGB format.
        color = "#FFFFCC";
      
    }

    else if (!this.IsPosted.Text.Equals("Yes"))
    {
       
        // Set the background color on the record row in RGB format.
        string color = "#f2e5b3";
       
    }

   // For each cell, set the background color.
        foreach (System.Web.UI.HtmlControls.HtmlTableCell recordRowCell in recordRow.Cells)
        {   
            // Override the record row background color -- since each data cell uses a
            // style (by default: table_cell or table_cellr)
            recordRowCell.Style.Add("background-color", color);
        }     

Cheers,
Jimi J

__________________

  Jaime Jegonia
[jts_logo]

Iron Speed MVP Developer
 

". . . and whoever sows generously will also reap generously" 2 Cor 9:6

Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Download Iron Speed Designer

Terms of Service Privacy Statement