Click here to Skip to main content
15,915,319 members
Home / Discussions / WPF
   

WPF

 
QuestionRe: App fails on restart problem ? Pin
bitbonk13-Aug-08 20:48
bitbonk13-Aug-08 20:48 
AnswerRe: App fails on restart problem ? Pin
aaj2329-Apr-11 9:07
aaj2329-Apr-11 9:07 
Questionhow i create simple silverlight2.0 application Pin
wasimsharp16-May-08 17:24
wasimsharp16-May-08 17:24 
AnswerRe: how i create simple silverlight2.0 application Pin
Michael Sync19-May-08 17:43
Michael Sync19-May-08 17:43 
AnswerRe: how i create simple silverlight2.0 application Pin
Member 97203321-May-08 0:15
Member 97203321-May-08 0:15 
QuestionHow can i create simple silver light2.0 Application Pin
wasimsharp16-May-08 17:20
wasimsharp16-May-08 17:20 
AnswerRe: How can i create simple silver light2.0 Application Pin
Michael Sync19-May-08 17:41
Michael Sync19-May-08 17:41 
QuestionWpf Listview edit Pin
member2715-May-08 23:54
member2715-May-08 23:54 
Iam binding the list view thro this code..

When i click the list the values appears in textbox ..How can i take the values
Public Sub bindlist()

Try

Dim olecon As New OleDb.OleDbConnection

Dim olecomd As New OleDb.OleDbCommand
Dim dtst As New DataSet
' Dim emp As New ListBox
Dim strsql As String
Dim adpt As OleDbDataAdapter
strsql = ("User ID=sa;password=nimda;Data Source=CANARY\SOCPOS;Tag with column collation when possible=False;Initial Catalog=pay;Use Procedure for Prepare=1;Auto Translate=True;Persist Security Info=False;Provider=SQLOLEDB.1;Workstation ID=CANARY;Use Encryption for Data=False;Packet Size=4096")
olecon.ConnectionString = strsql
olecon.Open()
olecomd.CommandText = "select * from ps_bank"
olecomd.Connection = olecon
adpt = New OleDb.OleDbDataAdapter(olecomd)

adpt.Fill(dtst)
Dim bind As New Binding
bind.Source = dtst.Tables(0)

ListColor.DataContext = dtst.Tables(0)
ListColor.SetBinding(ListView.ItemsSourceProperty, bind)

Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub


XAML:::

<Grid>
<TextBox BorderThickness="0" Text="{Binding Path=psc_code}"></TextBox>
</Grid>
</DataTemplate>-->

<DataTemplate x:Key="cellTemplateName">
<Grid>
<TextBox Name="txtname" BorderThickness="0" Text="{Binding Path=psbk_bankname}" VerticalAlignment="Center" ></TextBox>
</Grid>
</DataTemplate>

<DataTemplate x:Key="cellTemplateRGB">
<Grid>
<TextBox Name="txtrgb" BorderThickness="0" Text="{Binding Path=psbk_address1}"></TextBox>
</Grid>

</DataTemplate>

</Window.Resources>
<Grid>

<Grid.RowDefinitions>
<RowDefinition Height="500" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<ListView Name="ListColor" Grid.Row="0" >

<ListView.View>


<GridView AllowsColumnReorder="true" ColumnHeaderToolTip="Color Information" >
<!-- <GridViewColumn CellTemplate="{StaticResource cellTemplateCode}" Header="Code" Width="100"/>-->
<GridViewColumn DisplayMemberBinding="{Binding Path=psbk_bankcode}" Header="Code" Width="100"/>
<GridViewColumn CellTemplate="{StaticResource cellTemplateName}" Header="Name" Width="100"/>
<GridViewColumn CellTemplate="{StaticResource cellTemplateRGB}" Header="Address" Width="100"/>

</GridView>

</ListView.View>
</ListView>
<StackPanel Margin="0,20,0,0" Background="White" HorizontalAlignment="Left" Grid.Row="1" >
<Button Name="btnsave" Width ="50" Height="30" >Save</Button>

</StackPanel >

</Grid>
AnswerRe: Wpf Listview edit Pin
User 27100916-May-08 0:58
User 27100916-May-08 0:58 
GeneralRe: Wpf Listview edit Pin
member2717-May-08 2:03
member2717-May-08 2:03 
AnswerRe: Wpf Listview edit Pin
User 27100916-May-08 1:40
User 27100916-May-08 1:40 
Questionto WPF or not Pin
zorro91115-May-08 12:37
zorro91115-May-08 12:37 
AnswerRe: to WPF or not Pin
Ed.Poore15-May-08 12:54
Ed.Poore15-May-08 12:54 
GeneralRe: to WPF or not Pin
zorro91115-May-08 13:01
zorro91115-May-08 13:01 
GeneralRe: to WPF or not Pin
Ed.Poore15-May-08 13:36
Ed.Poore15-May-08 13:36 
GeneralRe: to WPF or not Pin
zorro91115-May-08 13:48
zorro91115-May-08 13:48 
GeneralRe: to WPF or not Pin
Ed.Poore15-May-08 14:10
Ed.Poore15-May-08 14:10 
GeneralRe: to WPF or not Pin
zorro91120-May-08 20:43
zorro91120-May-08 20:43 
GeneralRe: to WPF or not Pin
Ed.Poore20-May-08 22:31
Ed.Poore20-May-08 22:31 
QuestionHELP! Pin
Jammer15-May-08 9:56
Jammer15-May-08 9:56 
QuestionRe: HELP! Pin
Jammer15-May-08 10:21
Jammer15-May-08 10:21 
AnswerRe: HELP! Pin
Jammer15-May-08 11:14
Jammer15-May-08 11:14 
Questionediting the listview in WPF Pin
member2715-May-08 2:12
member2715-May-08 2:12 
AnswerRe: editing the listview in WPF Pin
User 27100915-May-08 6:51
User 27100915-May-08 6:51 
QuestionHow Silverlight write data to XML file? Pin
tomalani15-May-08 1:57
tomalani15-May-08 1:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.