Hi,
How do you get selected data from DataGrid after it has been sorted?
I have a DataGrid bound to a DataTable. When a user clicks on one of the rows, my program will get the row index (using DataGrid.CurrentRowIndex property) from the DataGrid, use the index to retrieve the appropriate...
Aaarrgghh!! I am pulling my hair right now.
How do you guys deal with non-IE browsers that do not display your web controls properly? They make my user interface looks horribly, horrendously, and undescribably ugly.
Henry
Hi,
I have a problem with reading web.config. I can't seem to figure out what's wrong with it.
Below is a snippet of my codes
//web.config
<configuration>
<appSettings>
<add key="connectionString" value="server=(local);user=username;password=blabla;database=mydb;Trusted_Connection=yes"...
Hi,
How do you programmatically check the existence of a data in a SQL/MYSQL database? I have tried to do the followings, but it does not seem to work:
string command = "SELECT COUNT(*) FROM table WHERE username = 'DoesNotExist';
MySqlCommand cmd = new MySqlCommand(command,connection)...
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.