Hi,
we are using UltraWebGrid while displaying,but click the column expanding complete style streching, find the code below please let me know the solution
greatly appreciated.
Sample code :
<igtbl:UltraWebGrid ID="grdSiteFunc" DisplayLayout-AutoGenerateColumns="false" runat="server"
Width="95%" EnableTheming="True" EnableViewState="True" Visible="True">
<Bands>
<igtbl:UltraGridBand
>
<AddNewRow View="NotSet" Visible
="NotSet">
AddNewRow
<Columns
<igtbl:UltraGridColumn AllowUpdate="No" Hidden="true" Key="ModFunctionID"
igtbl:UltraGridColumn
<igtbl:UltraGridColumn AllowUpdate="No" Key="ModFunctionName" Width
="300px">
<HeaderStyle HorizontalAlign="Left"
/>
<CellStyle HorizontalAlign
="Left">
CellStyle
<Header Caption
="Function">
<RowLayoutColumnInfo OriginX="1"
Header
<Footer
Footer
<igtbl:UltraGridColumn AllowUpdate="Yes" DataType="System.String" Key
="ModFunctionAlias"
Width
="250px">
<CellStyle HorizontalAlign="left" Wrap
="True">
="Alias">
<RowLayoutColumnInfo OriginX="2"
<igtbl:UltraGridColumn AllowUpdate="Yes" DataType="System.Boolean" Key="Site" Type
="CheckBox"
="80px">
="Center">
="">
Columns
igtbl:UltraGridBand
Bands
<DisplayLayout BorderCollapseDefault="Separate" Name="grdSiteFunc" ScrollBarView
="Both"
ScrollBar="Auto" RowHeightDefault="15px" SelectTypeRowDefault="Single" TableLayout
="Fixed"
RowSelectorsDefault="No" CellClickActionDefault="RowSelect" SelectTypeCellDefault
="Single"
Version="3.00" AutoGenerateColumns="False" StationaryMargins="Header" AllowSortingDefault
="OnClient"
HeaderClickActionDefault
<RowStyleDefault BackColor="Transparent" BorderColor="LightGray" CssClass
="gridViewTblColumns"
BorderStyle="Solid" BorderWidth
="1px">
<BorderDetails ColorLeft="Window" ColorTop="Window"
<Padding Left="1px"
RowStyleDefault
<HeaderStyleDefault CssClass="gridViewTblHeader" BackColor="#009DD9" BorderStyle
="Solid"
Height="20px" HorizontalAlign="Left" ForeColor="Navy" Font-Bold
<BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px"
HeaderStyleDefault
<SelectedRowStyleDefault BackColor
="LightSteelBlue">
SelectedRowStyleDefault
<EditCellStyleDefault CssClass="tableElement" HorizontalAlign
EditCellStyleDefault
<FrameStyle Width="100%" Height
="350px">
FrameStyle
<ActivationObject BorderColor="" BorderWidth
ActivationObject
<RowAlternateStyleDefault BackColor
="#FFF6CC">
RowAlternateStyleDefault
DisplayLayout
igtbl:UltraWebGrid
Hello Ranganathan,
If you have any further questions, please feel free to contact me.
Hi Ranganathan palanisamy,
I assume you are talking about the EditCellStyle, which is applied to a cell when you enter edit mode. You can change that using markup, similar to the following, under the DefaultLayout section:
<EditCellStyleDefault Font-Italic="true" BackColor="Red"></EditCellStyleDefault>
More information about styling UltraWebGrid can be found here: http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebGrid_Using_Styles_to_Change_WebGrids_Appearance.html.
Hope this helps.
Thanks For reply
While double click the gridview will style changed automatically. In cell edit event only
Please let me know the issue
Thanks
Ranganathan palanisamy
Hi ranganathanpalanisamy,
I didn't understand what exactly is the issue. Could you please clarify?