I think manupulate the data in the data source like data table before to bind them to the datagrid. Like after retrieveing the data into the data table, use sort by country. Then loop through each row to see if the next row has the same country or a new country. If same country, set the country cell to ''. juz my thoughts. Aaron
aarontan
Posts
-
Remove the repeated fields values from the Data Grid. -
Hi..Plz Solve my probhm..after getting ur month value, insert the relevant days into the second drop down list using if else statments? not really efficient i think.
-
Web forms controls problemHi, I have created a few web forms which include some drop down lists and list box. I encounter a problem of the controls not redraw or repaint when i scroll down the page. The control will take some image and deem disappear. However when i go and click on the control, it will be redrawn and it will appear again. Anyone got any idea how to solve this problem? Thanks. Aaron
-
Crystal Report Deployment in C#Hi all, I got a pressing question which i needed help answering. I have develop a crystal report in vs 2003.net using c#. I am able to run it smoothly on the development machine. However when i deploy it at the client side, the crystal report keep prompting me to log in although i have hardcoded the logOnInfo. A part of the code: CrystalReport1 rsource = new CrystalReport1(); rsource.SetDatabaseLogon("uid", "pwd", "server1","db1"); this.crystalReportViewer1.LogOnInfo = new TableLogOnInfo(); this.crystalReportViewer1.LogOnInfo.Add(logOnInfo); this.crystalReportViewer1.ReportSource = rsource; Any idea wat went wrong? :confused:
-
2 servertks for the reply... ok i tried that...I'm guessing i could use the number property to specify the error that i need to process..Also, there's one thing that puzzle me. There is a ConnectionState.Broken...when will this state occur? i tried have a connection open..then pluck off the cable..so i thought this is suppose to be connection broken. However the state of the connection is still open. Is there anything that i can refer to as to detect a break in connection from an open connect?
-
2 serverHi, I have an application which will connect to server A. However if server A fails...it should try to connect to server B. I have no idea how to go about implementing this. Any suggestions? ;)
-
maintain focus in edit boxTks. I resolved it using pic control and defining a WM_action message instead. Thought this would be neater. :-O
-
reset dialog boxI usually keep the default values in a config file..then read in from the file and update to the control values. Not sure if this is the best method. Aaron :doh:
-
maintain focus in edit boxHow do i maintain the focus in a edit box? For example i was typing half-way in the edit box, however an event occur and the focus got changed. How do i set the focus to remain in the edit box. This is wat i tried to do when the event occurs
if(m_alarmOn==false) { m_alarmOn= true; CWnd* prev = this->SetFocus(); prev->SetFocus(); CreateThread(0,NULL,CSecurityDlg::playSound,this,0,0); }
The above code reside in a OnBtnClick function. So when alarm is on, the button will be auto click....and the alarm sound goes off.... But in the process of these, i might be typing in a editbox. So i will lose the focus...How do i get it to stay? :(( Aaron -
Execute TwiceAnyone come across this problem where some of the afx_msg get execute twice? afx_msg like onButton1 get call twice...and AfxMessageBox("here"); also get execute twice....anyone know wats the problem? :omg: Aaron "To start a war takes the word "fight", To end it takes a whole lot more explanation"-- someone
-
Dialog background pictureTks man it works.
-
Dialog background pictureHi, I have used the following codes to load a bitmap onto the dialog box for the background during onPaint.However I need to change the picture when i click another button. Is there a function which i can call to redraw the bitmap again? cos when i put these code into a function, it doesnt work. Any idea? [code] CDC BmpDc; CPaintDC dc(this); VERIFY( BmpDc.CreateCompatibleDC(&dc) ); CBitmap BkBmp, *pOldBmp; //BkBmp. BkBmp.LoadBitmap(IDB_background); pOldBmp = (CBitmap *)BmpDc.SelectObject(&BkBmp); dc.BitBlt(0,0,m_nW,m_nH,&BmpDc,0,0,SRCCOPY); BmpDc.SelectObject(pOldBmp); [/code] :confused: Newb VCer
-
using vc++ dllI have check on msdn, there is no float type for vb 6.0. Not sure about .net. I've look up several papers saying that when the vc function in the dll is using a pointer as a parameter, the vb-side of calling the function should be using byref. Aaron
-
using vc++ dllI am using a vc++ dll in a vb program. The function require a pass byref single type. because in vc++ it require a floating point pointer. However, the values I'm getting is wrong. Anyone got any idea what could be wrong? I guessing the values are read in the wrong direction. Thanks for any help. Aaron
-
how to go about...ok tks will look into the share format of the file. If i set it to share read, logically it should work. rite? Aaron
-
how to go about...Hi, How to go about getting data from another running application? This is wat I am trying to do. There is program A running and storing data in the hard disk. I am creating a program which will retrive the real time data. This means that when i open the program, it will retrive the current data that program A is recording. However I do not run program B when A is running. I will run B as and when needed. Any idea? :confused: Aaron