1
Answer

How to display updated record in a grid without refreshing the page...

Photo of Administrator

Administrator

22y
1.6k
1
I am having a Datagrid which is displaying records from a table. Whenever some other user make changes in data, I need to display the updated record in Datagrid without refreshing the page. How can it be solved?

Answers (1)

0
Photo of Trinity
NA 217 0 15y
You can try this code

string BasePath = Application.StartupPath.ToString();
BasePath = Application.UserAppDataPath;
string ResultingPath = System.IO.Path.Combine(BasePath,"%your application name here%");
System.Diagnostics.Process.Start(ResultingPath);

Accepted
0
Photo of Trinity
NA 217 0 15y
Ok then mark it as answered
0
Photo of ic ic
NA 85 0 15y

I got it going :) Thank You All
string root = Application.StartupPath;
string exePath = System.IO.Path.Combine(root, "i:\\app\\test\\WAREH004.exe");
string argPath = System.IO.Path.Combine(root, "i:\\app\\test\\WAREH004.INI");
Process.Start(exePath, argPath + " 1");
0
Photo of Trinity
NA 217 0 15y

But this path is incorrect

P:\\test\\C#\\WAREH004.exe P:\\test\\C#\\WAREH004.INI 1?!!!
0
Photo of ic ic
NA 85 0 15y

Apologies for the late reply - Thank You for Assisting.
I get the Error: Cannot find the specified path
string BasePath = Application.StartupPath.ToString();
BasePath =
Application.UserAppDataPath;
string ResultingPath = System.IO.Path.Combine(BasePath, "P:\\test\\C#\\WAREH004.exe P:\\test\\C#\\WAREH004.INI 1");
System.Diagnostics.Process.Start(ResultingPath);
I can start - run - location then the program comes up.
Please Assist