Click here to Skip to main content
15,888,816 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
Hai i want to show data in grid view in wpf ,In that grid view first column with link button can u guide me or send snippets
Posted
Updated 19-Dec-13 3:37am
v3
Comments
Can you show some code?

1 solution

Hello, you can set GridViewColumn and assign cell template.

HTML
<ListView>
      <ListView.View>
        <GridView>        
          <GridViewColumn Header="Test" Width="100">
            <GridViewColumn.CellTemplate>
              <DataTemplate>
                <Button Content="Your LinkButton here."></Button>
              </DataTemplate>
            </GridViewColumn.CellTemplate>
          </GridViewColumn>
        </GridView>
      </ListView.View>
      <ListViewItem>FirstItem</ListViewItem>
    </ListView>


Regards
Joseph Leung
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900