Skip to content

Replies

0
Edward
Edward answered on Mar 27, 2011 3:39 PM

Hi,

After the line:

var row = newSelectedCell.get_row();

you then have the row. Then you can use:

row._index

to get the index of that row. 

Ed

0
Edward
Edward answered on Mar 27, 2011 2:49 AM

Hi,

Once you have the row you can use:

gridrow._index

Ed

0
Edward
Edward answered on Mar 3, 2011 8:27 PM

That's easy.

Just copy the class to your markup from the css file in your ig_res folder and alter according to your needs.

Ed

0
Edward
Edward answered on Mar 3, 2011 7:56 PM

Hi,

I assume it's still not working.  What version of WDG are you using.  I'm in 10.2.

Ed

0
Edward
Edward answered on Mar 3, 2011 7:15 PM

Hi,

I just tried your code and it's still working. Can you put in a plain WDG bound to northwind and try that?  Something's weird here.

Ed

0
Edward
Edward answered on Mar 3, 2011 2:34 PM

Hi,

I just gave it a shot iwth the following markup and it worked fine:

<head runat="server">
    <title></title>

<style type="text/css">

.DirectoryGridHeader

{
 background-color: #666666 !important; background-image: none !important;
}

</style>
   
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <ig:WebDataGrid ID="WebDataGrid1" runat="server" Height="350px" Width="400px"
            HeaderCaptionCssClass="DirectoryGridHeader" AutoGenerateColumns="False"
            DataSourceID="SqlDataSource1">
            <Columns>
                <ig:BoundDataField DataFieldName="ProductID" Key="ProductID">
                    <Header Text="ProductID" />
                </ig:BoundDataField>
                <ig:BoundDataField DataFieldName="ProductName" Key="ProductName">
                    <Header Text="ProductName" />
                </ig:BoundDataField>
            </Columns>
       
        </ig:WebDataGrid>
   
        <asp:SqlDataSource ID="SqlDataSource1" runat="server"
            ConnectionString="<%$ ConnectionStrings:NorthwindConnectionString %>"
            ProviderName="<%$ ConnectionStrings:NorthwindConnectionString.ProviderName %>"
            SelectCommand="SELECT [ProductID], [ProductName] FROM [Alphabetical List of Products]">
        </asp:SqlDataSource>
    
    </div>
    </form>
</body>
</html>

Ed