This is a migrated thread and some comments may be shown as answers.

RadGridView

2 Answers 97 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 30 Nov 2010, 04:13 PM
Hi,

I have couple of things about the RadGridView in particular. I have created a Radgidview in following way:-

        <UserControl x:Class="MySampleClass"
            
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
              mc:Ignorable="d"
              d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <telerik:RadGridView Grid.Column="0" Grid.Row="0"
                             x:Name="MainGridView"
                             ItemsSource="{Binding Path=MetricsData}"
                             AutoGenerateColumns="False" CanUserDeleteRows="False" CanUserInsertRows="False" ShowGroupPanel="False" RowIndicatorVisibility="Visible" SelectionMode="Extended" SelectionUnit="Cell"
                             IsFilteringAllowed="False"
                             SelectedCellsChanged="MainGridView_SelectedCellsChanged">
            <telerik:RadGridView.Columns>
                <telerik:GridViewDataColumn Header="ColA" Name="Mkt" DataMemberBinding="{Binding Path=Market, Mode=OneWay}" IsResizable="False" IsSortable="False" IsReadOnly="True" />
                <telerik:GridViewDataColumn Header="ColB" Name="SiD" DataMemberBinding="{Binding Path=Sub1, Mode=OneWay}" IsResizable="False" IsSortable="False" IsReadOnly="True" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
    </Grid>
</UserControl>

This user control resides inside a ScrollViewer(which is inside a GroupBox) in the topmost Page.

The first thing is when I access column name using GridViewCellInfo.Column.UniqueName in code-behind, it returns the string from Binding Path, I was expecting the value from the header name. Is there any way to get the header value or name element.

Other thing, when the radgridview contains many elements and scrolled down, I want the header row to be fixed and only its contained elements to be scrolled. How can I achieve this.

When a mouse rollover occurs over some particular elements of RadgidView, I want to change the visibility of them as hyperlinks(some underline bar appears and color changes to blue) to show that these elements are clickable (I am handling Selected event). Is there any property over some column that I set.

Thanks,
Mark

2 Answers, 1 is accepted

Sort by
0
Richard Slade
Top achievements
Rank 2
answered on 30 Nov 2010, 04:23 PM
Hello Mark,

Looks like this might be posted in the wrong forum. May I advise recreating the forum post in the correct forum to ensure that you get a good response.

Thanks
Richard
0
Mark
Top achievements
Rank 1
answered on 30 Nov 2010, 04:36 PM
Thanks Richard, I have posted in other forum.
Tags
GridView
Asked by
Mark
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Mark
Top achievements
Rank 1
Share this question
or