19 Topics

Member Avatar for
Member Avatar for tcon

consider the following classes (similar to the ones i am working with): [CODE] namespace Project { public class Person { public Person() { } private string name; public string Name { get { return name; } set { name = value; } } private List<Pet> myPets; public List<Pet> MyPets { …

Member Avatar for Garr
0
1K
Member Avatar for J.C. SolvoTerra

Did you know that you can data bind a bitmap to a PictureBox's image property, and the source image doesn't have to be in a binary format stored in a data table? Using a standard object setup for data binding (iNotify etc.) you can easily update your program's image propertie's …

0
1K
Member Avatar for hanvyj

I need to bind a property to a ToolStripMenuItem. I've searched around and found it imposible, the best workaround seems to be creating a BindableToolStripMenuItem class and implement it yourself. So I've taken some reasonabyl well established code from the internet: public partial class BindableToolStripMenuItem : ToolStripMenuItem,IBindableComponent { private BindingContext …

Member Avatar for hanvyj
0
369
Member Avatar for vishal anand.s

Hi my name is vishal. For the past 1 week i been in the process of creating a dashboard using listview in c# windows forms with sql server 2008. I created listview named lstDashItems and populate it from a table named USERACTIVITIES in sql server 2008. The design of USERACTIVITIES …

Member Avatar for vishal anand.s
0
385
Member Avatar for anton.putov

I am using dynamic ItemTemplate for ListView which populated from database.Here is how I do when I need to display string column "Parametr" (or some other datatypes): //my .ascx file <li><%# Eval("Parametr") %> </li> How can I display varbinary column that stores images?Thanks. Here is some more code if somebody …

Member Avatar for kvprajapati
0
134
Member Avatar for bilal_fazlani

hi, This is a bit complex.. I have 2 nested repeaters.. and 3 datasources(in markup) <asp:SqlDataSource ID=data1 runat=server ConnectionString="<%$connectionstrings:MainServer %>" SelectCommand="select MatrixRiskFactorId,Name,MaxWeight from Matrixriskfactor" ></asp:SqlDataSource> <asp:SqlDataSource ID=data2 runat=server ConnectionString="<%$connectionstrings:MainServer %>" SelectCommand="select * from MatrixQuestion" ></asp:SqlDataSource> <asp:SqlDataSource ID=data3 runat=server ConnectionString="<%$connectionstrings:MainServer %>" SelectCommand = "select MatrixRiskFactorId,Value,text from MatrixRiskFactorScore where MatrixRiskFactorId=2"> <repeater id=rep1 …

Member Avatar for G_Waddell
0
557
Member Avatar for abathurst

I am having trouble with databinding when trying to add it to a dropdownlist. I can get it to work with a label: <asp:Label ID="Label3" runat="server" Text='<%# Eval("Location") %>'></asp:Label> But when I try with the DropDownList I get this error and I can't seem to find an answer for it. …

Member Avatar for abathurst
0
1K
Member Avatar for abathurst

I am having trouble with databinding when trying to add it to a dropdownlist. I can get it to work with a label: <asp:Label ID="Label3" runat="server" Text='<%# Eval("Location") %>'></asp:Label> But when I try with the DropDownList I get this error and I can't seem to find an answer for it. …

Member Avatar for poojavb
0
180
Member Avatar for tamerhanna

Hi, I'm having a problem with a datetimepicker and databinding. I bind the text of the picker to a value from the database and it works perfectly fine and shows the value correctly, however whenever i change the text in the datetimepicker field to update, it changes, BUT gets back …

Member Avatar for mtroli
0
505
Member Avatar for archelle

I created a table in mySql named 'user' where fields are: UserID,UserFirstName,UserMidName,UserLastName,Username,UserType,AcctPassword,DateCreated, DatLastModified and IsDeleted. I create a separate form in vb.net to insert user record in database. My program can do insert command and bound this data from mySql to datagridview. And now, i wanted to update this by …

Member Avatar for M.Waqas Aslam
0
444
Member Avatar for JakeA

hi! i have a listbox binded to a list. the list contains checkboxes binded to a field/member of the list. what i want to achieve is that i want to delete the data from list when it's corresponding checkbox is checked... here's my xaml code: [CODE]<ListBox Name="ListBox1" ItemsSource="{Binding histList, Mode=OneWay}" …

Member Avatar for Mitja Bonca
0
188
Member Avatar for pj1981

Hi, I am working on a project for work that requires the <%# Now() %> function output to be inserted into a text box field that passes it's value to an Access 2007 DB with the rest of the form data on submission. I am able to either make the …

Member Avatar for abelLazm
0
132
Member Avatar for duranvskp

Hi <%# ((DataRowView)Container.DataItem)["SomeProperty"] %> <%# DataBinder.Eval(Container.DataItem, "SomeProperty")%> From Google i figured out these can be used to bind the columns in GridView to ArrayList. But what is "some property" ? For example i have a ArrayList in .aspx.cs as static ArrayList componentSelectionArray = new ArrayList(); so can i just write …

Member Avatar for MamathaS
0
127
Member Avatar for liam0014

Hello, I posted yesterday regarding my issues with adding rows to a database, this is now solved and I am grateful. Once the rows were added to the database the list box that displays one column of the database did not update so I included the following code after the …

Member Avatar for Mitja Bonca
0
5K
Member Avatar for discovery-power

Hi All, I have created a form for a user to create a booking of a meeting room, I need this form to do 3 things. have print functionality update the new booking to a dataset view the current bookings screen I seem to be struggling with the second task, …

Member Avatar for discovery-power
0
187
Member Avatar for JPeacock

Hi, I've been using VB.NET for quite a while now, and would definitely consider myself beyond a beginner. However, I have never attempted to use Data binding before, and have read [I]lots[/I] of stuff online about it, but I [I]still[/I] don't understand quite how it works. I have a form …

Member Avatar for JPeacock
0
158
Member Avatar for PerplexedB

I have found that [CODE]Me.DataBindings.Item(0).BindingMemberInfo.BindingField[/CODE] gives me the name of the field. Can I also find the datacolumncollection in this way?

0
102
Member Avatar for krokodajl

I have a ListView which is filled by generic list of type MyClass. I can easily bind data from this list into ListView. But I have problems with reading data in opposite direction. This is my class: [CODE] public class MyClass { public int id { get; set; } public …

Member Avatar for 4advanced
0
453
Member Avatar for PierlucSS

For the solution, I cannot use any postback methods, because this is all working through ajax. The solution need to be implemented in the asp.net code. I have a `List<WebPage>` that contains a list of Links `(List<Link>)` and I need for all the links to bind repetitive information such as …

Member Avatar for kad1r
0
211

The End.