Hi,
I'm using infrgistics since months without any problem. Today I'm facing a weird behavior I cannot explain.
I have a grid with two columns. One of the column should be editable and select values trough a webcombo. My problem is that when I edit the cell, the webcombo is displayed, I can pick a value, the webcombo disappears but the cell value remains the same than before.
Here is my code (I removed useless parameters)
-----
<igcmbo:WebCombo ID="wcbBranchs" runat="server" ComboTypeAhead="Simple" DataTextField="Name" DataValueField="BranchID" Version="4.00"> <Columns> <igtbl:UltraGridColumn BaseColumnName="BranchID" Hidden="True" Key="BranchID"> </igtbl:UltraGridColumn> <igtbl:UltraGridColumn BaseColumnName="Name" Key="Name" Width="100%"> <header caption="Name"> <RowLayoutColumnInfo OriginX="1"></RowLayoutColumnInfo> </header> <footer> <RowLayoutColumnInfo OriginX="1"></RowLayoutColumnInfo> </footer> </igtbl:UltraGridColumn> </Columns> </igcmbo:WebCombo>
<igtbl:UltraWebGrid ID="wdgDirections" runat="server" ><Bands> <igtbl:UltraGridBand> <AddNewRow View="NotSet" Visible="NotSet"> </AddNewRow> <Columns> <igtbl:UltraGridColumn BaseColumnName="ID" Hidden="True" Key="ID"> </igtbl:UltraGridColumn> <igtbl:TemplatedColumn BaseColumnName="Name" Key="Name" Type="Custom" Width="300px"> <HeaderStyle HorizontalAlign="Center" /> <Header Caption="Name"> <RowLayoutColumnInfo OriginX="2" /> </Header> <CellStyle HorizontalAlign="Center"> </CellStyle> <Footer> <RowLayoutColumnInfo OriginX="2" /> </Footer> </igtbl:TemplatedColumn> <igtbl:UltraGridColumn BaseColumnName="BranchID" Key="BranchID" EditorControlID="wcbBranchs" Type="Custom" Width="100px"> <Header Caption="Branch" Title="Branch"> <RowLayoutColumnInfo OriginX="3" /> </Header> <Footer> <RowLayoutColumnInfo OriginX="3" /> </Footer> <CellStyle HorizontalAlign="Center"> </CellStyle> </igtbl:UltraGridColumn> </Columns> </igtbl:UltraGridBand></Bands> <DisplayLayout AutoGenerateColumns="False" Name="wdgDirections" AllowAddNewDefault="Yes" AllowUpdateDefault="Yes"> <AddNewBox Hidden="False"> <BoxStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth="1px"> <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px" /> </BoxStyle> <ButtonStyle Cursor="Hand"> </ButtonStyle> </AddNewBox> </DisplayLayout></igtbl:UltraWebGrid>
Note:The combo has a TextField "Name" and a valueField "BranchID" while th datagrid has a basecolumn "BranchID" BUT I want to display the "Name". I dont know if I'm clear. I think I did this hundreds times before but I spent the last three hours looking for a solution.
thanks in advance
Hi PsychoTeddy
I already tried several datatype (int and string) but nothing seems to work. The tricky thing (but I'm sure it's possible to do it) is to bind an ID in the column (Int32) but to display a string in the cell.
The same code works in another projet so I really don't know what I forgot :/
Is your column.DataType set properly (same as the data type of the combo ID (int, string..))?