|
|
|
ผมใช้ Infragistics ultrawebgrid อะคับ คือผมต้อวการคลิกในคอรัมแล้วนำข้อมูลแสดงใน textbox |
|
|
|
|
|
|
|
Code (C#)
<igtbl:UltraWebGrid ID="uwg01ProdPriceLength" runat="server" Height="102px" Width="781px" EnableTheming="True" OnInitializeRow="uwg01ProdPriceLength_InitializeRow">
<DisplayLayout AllowAddNewDefault="Yes" AllowDeleteDefault="Yes" AllowRowNumberingDefault="ByBandLevel"
AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" AutoGenerateColumns="False"
Name="uwg01ProdPriceLength" RowsRange="10" SelectTypeRowDefault="Single" TableLayout="Fixed"
Version="4.00" EnableClientSideRenumbering="True" BorderCollapseDefault="Separate"
CellClickActionDefault="Edit" RowHeightDefault="21px" StationaryMargins="Header">
<GroupByBox>
<Style BackColor="ActiveBorder" BorderColor="Window"></Style>
<BandLabelStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</BandLabelStyle>
</GroupByBox>
<ActivationObject BorderStyle="Dotted">
</ActivationObject>
<RowStyleDefault BackColor="#D4D4D6" BorderColor="Gray" BorderStyle="Solid" BorderWidth="1px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False">
<BorderDetails ColorLeft="Gray" ColorTop="Gray" WidthLeft="0px" WidthTop="0px" />
</RowStyleDefault>
<ClientSideEvents BeforeEnterEditModeHandler="uwg01ProdPriceLength_BeforeEnterEditModeHandler" />
<SelectedRowStyleDefault BackColor="#959595" ForeColor="White" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False">
</SelectedRowStyleDefault>
<HeaderStyleDefault BackColor="#B2B2B4" BorderColor="Black" BorderStyle="Solid" ForeColor="White" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False">
<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" />
</HeaderStyleDefault>
<RowAlternateStyleDefault BackColor="#E9E9F7" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False">
</RowAlternateStyleDefault>
<FrameStyle BorderColor="#999999" BorderStyle="None" BorderWidth="3px" Cursor="Default"
Font-Size="X-Small" Height="102px" Width="781px" Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False">
</FrameStyle>
<Pager>
<Style BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px"></Style>
<ComboStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</ComboStyle>
</Pager>
<AddNewBox Location="Top" Prompt="Add">
<Style BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth="1px"></Style>
<ButtonStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</ButtonStyle>
</AddNewBox>
<ClientSideEvents CellClickHandler="uwg01Product_CellClick" DblClickHandler="uwg01Product_DblClick" />
<EditCellStyleDefault Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</EditCellStyleDefault>
<FooterStyleDefault Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</FooterStyleDefault>
<RowSelectorStyleDefault Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</RowSelectorStyleDefault>
<SelectedHeaderStyleDefault Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</SelectedHeaderStyleDefault>
<GroupByRowStyleDefault Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</GroupByRowStyleDefault>
<SelectedGroupByRowStyleDefault Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</SelectedGroupByRowStyleDefault>
<RowExpAreaStyleDefault Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</RowExpAreaStyleDefault>
<FixedCellStyleDefault Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</FixedCellStyleDefault>
<FixedHeaderStyleDefault Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</FixedHeaderStyleDefault>
<FixedFooterStyleDefault Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</FixedFooterStyleDefault>
<AddNewRowDefault>
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
</AddNewRowDefault>
<FormulaErrorStyleDefault Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</FormulaErrorStyleDefault>
</DisplayLayout>
<Bands>
<igtbl:UltraGridBand>
<RowStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" />
<RowExpAreaStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</RowExpAreaStyle>
<SelectedRowStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" />
<EditCellStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</EditCellStyle>
<GroupByRowStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</GroupByRowStyle>
<SelectedGroupByRowStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</SelectedGroupByRowStyle>
<RowSelectorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</RowSelectorStyle>
<RowAlternateStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</RowAlternateStyle>
<Columns>
<igtbl:UltraGridColumn BaseColumnName="prodCode" DataType="System.Double" EditorControlID=""
FooterText="" Format="###,###,##0.00" FormulaErrorValue="" HeaderText="col01ProductCodeT"
Key="col01ProductCodeT" Width="120px">
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" />
<CellButtonStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</CellButtonStyle>
<HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" />
<SelectedHeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</SelectedHeaderStyle>
<ValueList>
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
</ValueList>
<CellStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</CellStyle>
<SelectedCellStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</SelectedCellStyle>
<Header Caption="col01ProductCodeT" Title="">
<Image AlternateText="" Url="" />
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
<SelectedStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</SelectedStyle>
</Header>
<Footer Caption="" Title="">
<FormulaErrorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</FormulaErrorStyle>
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
<SelectedStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</SelectedStyle>
</Footer>
<FormulaErrorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</FormulaErrorStyle>
</igtbl:UltraGridColumn>
<igtbl:UltraGridColumn BaseColumnName="prodTName" DataType="System.Double" EditorControlID=""
FooterText="" Format="###,###,##0.00" FormulaErrorValue="" HeaderText="col01ProductName1"
Key="col01ProductName1" Width="160px">
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" />
<CellButtonStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</CellButtonStyle>
<HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" />
<SelectedHeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</SelectedHeaderStyle>
<ValueList>
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
</ValueList>
<CellStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</CellStyle>
<SelectedCellStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</SelectedCellStyle>
<Header Caption="col01ProductName1" Title="">
<Image AlternateText="" Url="" />
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
<SelectedStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</SelectedStyle>
<RowLayoutColumnInfo OriginX="1" />
</Header>
<Footer Caption="" Title="">
<FormulaErrorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</FormulaErrorStyle>
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
<SelectedStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</SelectedStyle>
<RowLayoutColumnInfo OriginX="1" />
</Footer>
<FormulaErrorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</FormulaErrorStyle>
</igtbl:UltraGridColumn>
<igtbl:UltraGridColumn BaseColumnName="prodEName" DataType="System.Double" EditorControlID=""
FooterText="" Format="###,###,##0.00" FormulaErrorValue="" HeaderText="col01ProductName2"
Key="col01ProductName2" Width="160px">
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" />
<CellButtonStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</CellButtonStyle>
<HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" />
<SelectedHeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</SelectedHeaderStyle>
<ValueList>
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
</ValueList>
<CellStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</CellStyle>
<SelectedCellStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</SelectedCellStyle>
<Header Caption="col01ProductName2" Title="">
<Image AlternateText="" Url="" />
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
<SelectedStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</SelectedStyle>
<RowLayoutColumnInfo OriginX="2" />
</Header>
<Footer Caption="" Title="">
<FormulaErrorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</FormulaErrorStyle>
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
<SelectedStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</SelectedStyle>
<RowLayoutColumnInfo OriginX="2" />
</Footer>
<FormulaErrorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</FormulaErrorStyle>
</igtbl:UltraGridColumn>
<igtbl:UltraGridColumn BaseColumnName="prodUniqueCode" DataType="System.Double" EditorControlID=""
FooterText="" Format="###,###,##0.00" FormulaErrorValue="" HeaderText="col01Unit"
Key="col01Unit" Width="80px">
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" />
<CellButtonStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</CellButtonStyle>
<HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" />
<SelectedHeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</SelectedHeaderStyle>
<ValueList>
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
</ValueList>
<CellStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</CellStyle>
<SelectedCellStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</SelectedCellStyle>
<Header Caption="col01Unit" Title="">
<Image AlternateText="" Url="" />
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
<SelectedStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</SelectedStyle>
<RowLayoutColumnInfo OriginX="3" />
</Header>
<Footer Caption="" Title="">
<FormulaErrorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</FormulaErrorStyle>
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
<SelectedStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</SelectedStyle>
<RowLayoutColumnInfo OriginX="3" />
</Footer>
<FormulaErrorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</FormulaErrorStyle>
</igtbl:UltraGridColumn>
</Columns>
<HeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" />
<SelectedHeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False"
Font-Strikeout="False" Font-Underline="False">
</SelectedHeaderStyle>
<FooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False" />
<FormulaErrorStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</FormulaErrorStyle>
<RowEditTemplate>
<p align="right">
<input id="igtbl_TextBox_0_0" style="width: 150px" type="text" /><br />
<input id="igtbl_TextBox_0_1" style="width: 150px" type="text" /><br />
</p>
<br />
<p align="center">
<input id="igtbl_reOkBtn" onclick="igtbl_gRowEditButtonClick(event);" style="width: 50px"
type="button" value="OK" />
<input id="igtbl_reCancelBtn" onclick="igtbl_gRowEditButtonClick(event);" style="width: 50px"
type="button" value="Cancel" /></p>
</RowEditTemplate>
<RowTemplateStyle BackColor="White" BorderColor="White" BorderStyle="Ridge" Font-Bold="False"
Font-Italic="False" Font-Overline="False" Font-Strikeout="False" Font-Underline="False">
<BorderDetails WidthBottom="3px" WidthLeft="3px" WidthRight="3px" WidthTop="3px" />
</RowTemplateStyle>
<FixedCellStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</FixedCellStyle>
<FixedHeaderStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</FixedHeaderStyle>
<FixedFooterStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False">
</FixedFooterStyle>
<AddNewRow View="NotSet" Visible="NotSet">
<Style Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout="False"
Font-Underline="False"></Style>
</AddNewRow>
</igtbl:UltraGridBand>
</Bands>
</igtbl:UltraWebGrid>
ตัวนี้อะคับ ผมจะคลิกภายในคอรัมและนำข้อมูลทั้งแถวออกมาโชว์ ที่ textbox แต่ละตัวอย่างไรเพื่อแก้ไขคับ
|
|
|
|
|
Date :
2011-07-08 17:23:29 |
By :
poqjung |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|