I found some code that extends the standard datagrid view to allow rows or columns to be dragged and droped within the grid
the code can be found at :-http://www.danielsoper .com/programming/DataGridViewDra gDropRowsColumn s.aspx
Has any one else used/had expereience of using this control?
I drop the new grid object onto the form and add the DataSource and and DataMember, all works fine. What I can't seem...
User Profile
Collapse
-
C# DataGridView extensions for drag n drop.
-
Temporary tables
I have a stored sript that works across a number of different databases at the clients sites. In order for this to work the script creates a global temporary table that is calibrated according to the servers/databases regional settings
...Code:SET @DatabaseCollation = convert(sysname,DatabasePropertyEx(db_name(),'Collation')) SET @SQL = 'CREATE TABLE ##TableStructure (TableName varchar(100) COLLATE ' + @DatabaseCollation +
-
Information_schema.columns
if I select character_maxim um_length from INFORMATION_SCH EMA.COLUMNS
if returns -1 on columns that are defined as varchar(max)
is this normal??? -
User Controls & calling a method from the parent page
I have created a user control to allow a user to select an address from a drop down list. I want to code to pass the selected record referenec to be passed to a method on the parent page.
In VFP I would just to This.Parent.Met hodName(<Parame ter List>)
my code currently reads
protected void SelectedIndexCh anged(object sender, EventArgs e)
{
int...Last edited by jhardman; Jan 3 '08, 04:34 AM. Reason: move to .NET forum - ASP forum is for "classic" ASP -
error_message()
I have a stored procedure that drops all constraints and indexes then rebuilds them.
some of if goes something like this...
WHILE @@fetch_status = 0
BEGIN
SET @SQL = 'ALTER TABLE ' + @TableName + ' DROP CONSTRAINT ' + @ObjectName
BEGIN TRY
EXEC (@SQL)
END TRY
BEGIN CATCH
INSERT INTO ##NonDropped VALUES('Constra int ' + @ObjectName + ' on table ' + @TableName,... -
No message print!
I'm writing a script that will use INFORMATION_SCH EMA to build a temporary table of the database structure. This works fine but every time a new record is input I get (1 row(s) affected) printed on the screen, repeated for every row in the INFORMATION_SCH EMA.
Is there a way to turn off these messages?
All I want the user to see is a message 'Job Started' and then 'Job finished' -
onMouseout event not fireing
I create a <DIV> and <TABLE> from javascript, which drops down when a user clicks a button.
The div has a onMouseout event that is intended to hide the div when the user moved the mouse away from the table. But the event does not seem to fire. I have moved the event to the table, which does fire, but fires before it even gets focus!
Any one come across this problem before or have any solutions? -
Ran the page using Opera, and the cursor changes to the selected cursor, but uner IE it just shows as the default. -
it has a move as I didn't change it back after checking with a different cursor!
IE7 & 6Leave a comment:
-
-
<SELECT><OPTION> tags
I have a drop down on a web page and want to change the cursor from default to pointer, so my style definition has
style ="cursor: pointer;"
the drop down though fails to change from the default curor. I've tryed applying the style to the <select> tag and to the <option> tags to no avail. -
Javascript alert()
Does any one now the maxmimum number of characters that can be displayed by an alert?
var myString = "a very long string......... ... .......xxxx.";
myString = myString + "even more text........... ............";
alert(myString) ; -
Javascript inside a XSLT file and how to handle parameters.
My xslt file contains a passed parameters
<xsl;param name="Widths">7 0px,70px,70px,1 00px,100px</xsl;param>
which I want to use to sets the widths of my table columns .
when I create my table I make the following call.
<tr>
<th valign="bottom" width="{foo:Get Width(0)}">Leng th<br/>(units)</th>
<th valign="bottom"...
No activity results to display
Show More
Leave a comment: