Click here to Skip to main content
16,005,169 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionSidebar with Hyperlinks to pushpins in google maps Pin
wachira0924-Jun-09 22:11
wachira0924-Jun-09 22:11 
AnswerRe: Sidebar with Hyperlinks to pushpins in google maps Pin
Christian Graus24-Jun-09 22:33
protectorChristian Graus24-Jun-09 22:33 
QuestionHow to get Machine IP from a server Pin
Avi198924-Jun-09 20:32
Avi198924-Jun-09 20:32 
AnswerRe: How to get Machine IP from a server Pin
Christian Graus24-Jun-09 21:05
protectorChristian Graus24-Jun-09 21:05 
AnswerRe: How to get Machine IP from a server Pin
r a m e s h24-Jun-09 21:07
r a m e s h24-Jun-09 21:07 
QuestionGrid View Row Command help Pin
KhandelwalA24-Jun-09 20:29
KhandelwalA24-Jun-09 20:29 
AnswerRe: Grid View Row Command help Pin
padmanabhan N24-Jun-09 20:52
padmanabhan N24-Jun-09 20:52 
QuestionHow to get an ID of a selected Row in a Ultrawebgrid Pin
Vimalsoft(Pty) Ltd24-Jun-09 20:21
professionalVimalsoft(Pty) Ltd24-Jun-09 20:21 
Good Morning All

i have a Ultrawebgrid defined like this


<igtbl:UltraWebGrid ID="ultraGridStudentsMixTypes" runat="server"
                                    Style="left: -8px; top: 375px" OnInitializeLayout="ultraGridStudentsMixTypes_InitializeLayout" OnDataBound="ultraGridStudentsMixTypes_DataBound" OnSelectedRowsChange="ultraGridStudentsMixTypes_SelectedRowsChange">
                                        <Bands>
                                            <igtbl:UltraGridBand>
                                                <RowEditTemplate>
                                                    <br />
                                                    <p align="center">
                                                        <input id="igtbl_reOkBtn" onclick="igtbl_gRowEditButtonClick(event);" style="width: 50px"
                                                        type="button" value="OK" />&nbsp;
                                                        <input id="igtbl_reCancelBtn" onclick="igtbl_gRowEditButtonClick(event);" style="width: 50px"
                                                        type="button" value="Cancel" /></p>
                                                </RowEditTemplate>
                                                <RowTemplateStyle BackColor="Window" BorderColor="Window" BorderStyle="Ridge">
                                                    <BorderDetails WidthBottom="3px" WidthLeft="3px" WidthRight="3px" WidthTop="3px" />
                                                </RowTemplateStyle>
                                                <AddNewRow View="NotSet" Visible="NotSet">
                                                </AddNewRow>
                                                <Columns>
                                                <igtbl:UltraGridColumn AllowUpdate="No" BaseColumnName="ID" DataType="System.Int32"
                                                    Hidden="True" IsBound="True" Key="ID">
                                                    <Header Caption="ID">
                                                    </Header>
                                                </igtbl:UltraGridColumn>
                                                <igtbl:UltraGridColumn AllowUpdate="No" BaseColumnName="Subject" IsBound="True" Key="Subject">
                                                    <Header Caption="Subject">
                                                        <RowLayoutColumnInfo OriginX="1" />
                                                    </Header>
                                                    <Footer>
                                                        <RowLayoutColumnInfo OriginX="1" />
                                                    </Footer>
                                                </igtbl:UltraGridColumn>
                                                <igtbl:UltraGridColumn AllowUpdate="No" BaseColumnName="Activity" IsBound="True"
                                                    Key="Activity">
                                                    <Header Caption="Activity">
                                                        <RowLayoutColumnInfo OriginX="2" />
                                                    </Header>
                                                    <Footer>
                                                        <RowLayoutColumnInfo OriginX="2" />
                                                    </Footer>
                                                </igtbl:UltraGridColumn>
                                                <igtbl:UltraGridColumn AllowUpdate="Yes" BaseColumnName="Length" DataType="System.Int32"
                                                    IsBound="True" Key="Length">
                                                    <Header Caption="Length">
                                                        <RowLayoutColumnInfo OriginX="3" />
                                                    </Header>
                                                    <Footer>
                                                        <RowLayoutColumnInfo OriginX="3" />
                                                    </Footer>
                                                </igtbl:UltraGridColumn>
                                                  <igtbl:UltraGridColumn AllowUpdate="Yes" BaseColumnName="Mix" DataType="System.Int32"
                                                    IsBound="True" Key="Mix">
                                                    <Header Caption="Mix">
                                                        <RowLayoutColumnInfo OriginX="4" />
                                                    </Header>
                                                    <Footer>
                                                        <RowLayoutColumnInfo OriginX="4" />
                                                    </Footer>
                                                </igtbl:UltraGridColumn>
                                            </Columns>
                                            </igtbl:UltraGridBand>
                                        </Bands>
                                        <DisplayLayout Version="4.00" AllowSortingDefault="OnClient" StationaryMargins="Header"
                                        AllowColSizingDefault="Free" StationaryMarginsOutlookGroupBy="True"
                                        HeaderClickActionDefault="SortSingle" Name="ultraGridStudentsMixTypes" BorderCollapseDefault="Separate"
                                        TableLayout="Fixed" RowHeightDefault="20px" SelectTypeRowDefault="Extended" CellClickActionDefault="RowSelect" EnableInternalRowsManagement="True" SelectTypeCellDefault="Extended" SelectTypeColDefault="Extended">
                                            <FrameStyle BorderWidth="1px" BorderColor="InactiveCaption" BorderStyle="Solid" Font-Size="10pt"
                                            Font-Names="Verdana" BackColor="Window">
                                            </FrameStyle>
                                            <Pager MinimumPagesForDisplay="2" PagerAppearance="Both" PageSize="30" StyleMode="ComboBox"
                                            AllowPaging="True" AllowCustomPaging="True">
                                                <PagerStyle BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray">
                                                    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                                                </PagerStyle>
                                            </Pager>
                                            <EditCellStyleDefault BorderWidth="0px" BorderStyle="None" Font-Names="Verdana" Font-Size="8pt">
                                            </EditCellStyleDefault>
                                            <FooterStyleDefault BorderWidth="1px" BorderStyle="Solid" BackColor="LightGray">
                                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                                            </FooterStyleDefault>
                                            <HeaderStyleDefault HorizontalAlign="Left" BorderStyle="Solid" BackColor="LightGray"
                                            Font-Bold="True" Font-Names="Verdana" Font-Size="10pt">
                                                <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                                            </HeaderStyleDefault>
                                            <RowStyleDefault BorderWidth="1px" BorderColor="Silver" BorderStyle="Solid" Font-Size="8pt"
                                            Font-Names="Verdana" BackColor="Window">
                                                <Padding Left="3px" />
                                                <BorderDetails ColorLeft="Window" ColorTop="Window" />
                                            </RowStyleDefault>
                                            <GroupByRowStyleDefault BorderColor="Window" BackColor="Control">
                                            </GroupByRowStyleDefault>
                                            <SelectedRowStyleDefault BackColor="Silver" Font-Names="Verdana" Font-Size="8pt">
                                            </SelectedRowStyleDefault>
                                            <GroupByBox>
                                                <BoxStyle BorderColor="Window" BackColor="ActiveBorder">
                                                </BoxStyle>
                                            </GroupByBox>
                                            <AddNewBox>
                                                <BoxStyle BorderWidth="1px" BorderColor="InactiveCaption" BorderStyle="Solid" BackColor="Window">
                                                    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
                                                </BoxStyle>
                                            </AddNewBox>
                                            <ActivationObject BorderWidth="" BorderColor="">
                                            </ActivationObject>
                                            <FilterOptionsDefault>
                                                <FilterDropDownStyle BorderWidth="1px" BorderColor="Silver" BorderStyle="Solid" Font-Size="11px"
                                                Font-Names="Verdana,Arial,Helvetica,sans-serif" BackColor="White" Width="200px"
                                                Height="300px" CustomRules="overflow:auto;">
                                                    <Padding Left="2px" />
                                                </FilterDropDownStyle>
                                                <FilterHighlightRowStyle ForeColor="White" BackColor="#151C55">
                                                </FilterHighlightRowStyle>
                                                <FilterOperandDropDownStyle BorderWidth="1px" BorderColor="Silver" BorderStyle="Solid"
                                                Font-Size="11px" Font-Names="Verdana,Arial,Helvetica,sans-serif" BackColor="White"
                                                CustomRules="overflow:auto;">
                                                    <Padding Left="2px" />
                                                </FilterOperandDropDownStyle>
                                            </FilterOptionsDefault>
                                        </DisplayLayout>
                                    </igtbl:UltraWebGrid>


and i have the Following Code in the SelectedRowsChange event to get the Id of the selected Rows.

protected void ultraGridStudentsMixTypes_SelectedRowsChange(object sender, SelectedRowsEventArgs e)
    {
        SelectedRowsCollection rows = ultraGridStudentsMixTypes.DisplayLayout.SelectedRows;

        string ids = string.Empty;

        foreach (UltraGridRow Rows in rows)
        {
            ids += Rows.Cells.FromKey("ID").Value.ToString() + ", ";

        }

        char[] chars = { ',', ' ' };

        Session["Selected_Rows"] = ids.TrimEnd(chars);
    }


Now the code inside the Foreach does not run. What i want is to get the ID of the selected Row in the Grid.

Am using Infragisticts 8.1

Thank you

Vuyiswa Maseko,

Few companies that installed computers to reduce the employment of clerks have realized their expectations.... They now need more and more expensive clerks even though they call them "Developers" or "Programmers."

C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.somee.com
http://www.vuyiswamaseko.tiyaneProperties.co.za
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/

QuestionProblem in renaming Directories. Pin
souravghosh1824-Jun-09 19:52
souravghosh1824-Jun-09 19:52 
AnswerRe: Problem in renaming Directories. Pin
Abhijit Jana24-Jun-09 20:02
professionalAbhijit Jana24-Jun-09 20:02 
GeneralRe: Problem in renaming Directories. Pin
souravghosh1824-Jun-09 20:04
souravghosh1824-Jun-09 20:04 
AnswerRe: Problem in renaming Directories. Pin
padmanabhan N24-Jun-09 20:02
padmanabhan N24-Jun-09 20:02 
QuestionSave Dialog in asp.net Pin
ballameharmurali24-Jun-09 19:32
ballameharmurali24-Jun-09 19:32 
AnswerRe: Save Dialog in asp.net Pin
dan!sh 24-Jun-09 19:49
professional dan!sh 24-Jun-09 19:49 
GeneralRe: Save Dialog in asp.net Pin
ballameharmurali25-Jun-09 20:20
ballameharmurali25-Jun-09 20:20 
AnswerRe: Save Dialog in asp.net Pin
r a m e s h24-Jun-09 21:02
r a m e s h24-Jun-09 21:02 
GeneralRe: Save Dialog in asp.net Pin
ballameharmurali25-Jun-09 20:21
ballameharmurali25-Jun-09 20:21 
AnswerRe: Save Dialog in asp.net Pin
Christian Graus24-Jun-09 21:06
protectorChristian Graus24-Jun-09 21:06 
GeneralRe: Save Dialog in asp.net Pin
ballameharmurali25-Jun-09 20:22
ballameharmurali25-Jun-09 20:22 
QuestionAppling Alternate Rows with border for Datagrid Pin
antony beula24-Jun-09 19:31
antony beula24-Jun-09 19:31 
AnswerRe: Appling Alternate Rows with border for Datagrid Pin
Chetan.visodiya24-Jun-09 22:54
Chetan.visodiya24-Jun-09 22:54 
GeneralRe: Appling Alternate Rows with border for Datagrid Pin
antony beula25-Jun-09 0:48
antony beula25-Jun-09 0:48 
GeneralRe: Appling Alternate Rows with border for Datagrid Pin
Chetan.visodiya25-Jun-09 2:22
Chetan.visodiya25-Jun-09 2:22 
QuestionBinding 2 values to Link Button Pin
sjs4u24-Jun-09 19:30
sjs4u24-Jun-09 19:30 
AnswerRe: Binding 2 values to Link Button Pin
padmanabhan N24-Jun-09 19:35
padmanabhan N24-Jun-09 19:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.