Hi,
First clear the lisbox cotrol and then requery the database. If you dont clear, the items will be added to the existing items.
listboxname.items.clear()
Hope this works out.
Hi,
since you are trying to retreive records with specific value, I think you have to use RecordSelectionFormula. see example below:
rpt.RecordSelectionFormula = "{tbl_UC142_4.UC142_4_ContributionYear}=" & cboYears_P4.Text & " AND {tbl_A_Assignments.A_AssignmentID}=" & gintAsgnID
give the...
check this Function:
Friend Sub GetMediaINABatch()
Call Connection()
Try
Cursor.Current = Cursors.WaitCursor
' To clear the tables and relation each time this function is called so that after deleting a batch, the grid is updated
sqlDataSet.Relations.Clear()
sqlDataSet.Tables.Clear()...
You coulc use :
MonthCalendar1.TodayDate.GetDateTimeFormats().GetValue(7)
This will give you the current date in "MM/dd/YYYY" format. You can store this in a date variable or You can assign this to your column in the database. Hope this works out.
In design mode, change the "Drop down style" property of the combo box to "Dropdown List". Now when u hit A apple will be automatically populated. If you have two members with A , then keep hitting A so that the combo box automatically shows u members with A one by one. This should work out..
Hi,
I have a question. The thread.abort() method raises an exeception. Is therea any way not to show the message "Thread is being aborted". I am creating a new thread for a method and when user clicks the stop button, I am aborting it. Everything works fine except that the message pops up two...
Hi I need help in datagrid. I want a particular row (entire row not single cell) to be colored based on particular row number.. I can know the row number while programming. I want that specific row font color to be red. Does anybody have any ideas??
Thanks in advance..
Angitapalli.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.