creating particular rows object in gridpanel

  1. #1

    creating particular rows object in gridpanel



    Hi

    I have bind 20 rows in gridpanel. After that i want to create object for particular rows in a cells. In asp.net there is an option for creating object for particular rows.

    For example: (ASP.NET)

    
    
    label cid = (Label)gridview1.row[0][0].findcontrol("Label1");
    label cid1 = (Label)gridview1.row[1][0].findcontrol("Label1");
    label cid2 = (Label)gridview1.row[2][0].findcontrol("Label1");
    label cid3 = (Label)gridview1.row[3][0].findcontrol("Label1");
    
    
    cid is for object of gridview first row and first cell.
    cid1 is for object of gridview second row and first cell.
    cid2 is for object of gridview third row and first cell.
    cid3 is for object of gridview fourth row and first cell.
    Thanks
    Madan
  2. #2

    RE: creating particular rows object in gridpanel

    Hi speedstep,

    The <ext:GridPanel> works on a different, and much more flexible model which pushes much of the rendering logic onto the client.

    Depending on your requirements, you can set the <Editor> if you require cell editing capabilities or <Renderer> for modifying the cell "text".

    Example

    <ext:Column ColumnID="Name" Header="Name" DataIndex="name">
        <Editor>
            <ext:TextField runat="server" />
        </Editor>
        <Renderer Format="Capitalize" />
    </ext:Column>
    Geoffrey McGill
    Founder
  3. #3

    RE: creating particular rows object in gridpanel

    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] GridPanel.Rows.Changing Background Color of Rows
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 01, 2012, 5:18 PM
  2. Replies: 0
    Last Post: Oct 21, 2011, 3:04 AM
  3. Gridpanel - Creating Multiple Row headers
    By Yemo in forum 1.x Help
    Replies: 2
    Last Post: Jan 09, 2011, 9:25 AM
  4. Replies: 1
    Last Post: Oct 13, 2010, 11:09 PM
  5. Creating GridPanel at runtime
    By methode in forum 1.x Legacy Premium Help
    Replies: 8
    Last Post: Oct 21, 2008, 12:39 PM

Posting Permissions