473,699 Members | 2,196 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with datagrid row select

Hi all,
I was wondering if anyone can help me with a really annoying problem I have
been having. I made a derived datagrid class that will select the row when
a user clicks anywhere on a cell (multi-select without modifier keys). I
got that working fine, but I also wanted to keep rows selected after a sort,
which I do by storing the row's id in an arraylist. The idea was to do the
sort and then go back and re-select the rows with that row id, which will
now be in a different location. The problem is that to walk through the
datagrid I have to set the current cell and for some reason that is messing
up the array's values. I am at a total loss. Anyone know why this is
happening and/or know a fix? Have I screwed the code up somewhere? Any
help would be dearly appreciated. Here is my code:

public class RowSelectDataGr id : DataGrid

{

private const int OFFSET = 5;

private bool multiselect;

private string id_field;

private ArrayList data_id_array;
// these are used for single selects

private int lastrow;

private int lastID;

/// <summary>

/// Constructor for the row select data grid

/// </summary>

/// <param name="id_field_ name">Name of the field that holds a record id for
your dataset</param>

/// <param name="multi">Bo olean value to enable the multiselect feature of
the datagrid</param>

public RowSelectDataGr id(string id_field_name, bool multi) : base()

{

this.data_id_ar ray = new ArrayList();

this.lastrow = -1; // default value

this.lastID = -1; // default value

this.id_field = id_field_name;

this.multiselec t = multi;

}

/// <summary>

/// Select the rows that contain ids in the selections array of ints

/// </summary>

/// <param name="selection s">ArrayList of the record ids to be
selected</param>

public void SetSelectionLis t( ArrayList selections )

{

this.data_id_ar ray.Clear();

foreach( int id in selections )

{

if( this.multiselec t )

this.data_id_ar ray.Add( id );

else // single select only has 1 entry max

this.data_id_ar ray[0] = id;

}

RefreshSelects( );

}

/// <summary>

/// Get or Set the multiselect datagrid option

/// </summary>

public bool MultiSelect

{

get

{

return this.multiselec t;

}

set

{

// when this changes, the selections are cleared

this.data_id_ar ray.Clear();

this.multiselec t = value;

}

}

/// <summary>

/// Reprocess the entire datagrid line by line, selecting previously

/// specified rows

/// </summary>

public void RefreshSelects( )

{

// Debugging -- this works, just selects the wrong row

// this.Select(thi s.lastrow);

// go through each line and select if it is in the list, unselect otherwise

int iRow;

DataGridCell checkCell = new DataGridCell();

checkCell.Colum nNumber = 1;

BindingManagerB ase bm;

DataRowView drv;

DataTable myTable = ((DataSet) this.DataSource ).Tables[this.DataMember];

for( iRow = 0; iRow < myTable.Rows.Co unt; iRow++ )

{

// position at the first column of the current row

checkCell.RowNu mber = iRow;

this.CurrentCel l = checkCell; // *************** ** THIS IS THE PROBLEM
LINE -- HOW DOES IT CHANGE THE PRIVATE ARRAYLIST???

bm = BindingContext[this.DataSource , this.DataMember];

drv = (DataRowView) bm.Current;

// if this row has an id in the selection list, make sure it is selected

if( this.data_id_ar ray.Contains( Int32.Parse(
drv[this.id_field].ToString() ) ) )

{

this.Select( iRow );

// if single select, update the row (don't need to update the value)

if( !this.multisele ct )

this.lastrow = iRow;

}

// else

// this.UnSelect( iRow );

}

}

/*

* Note that we can just use the datagrid's select(int row) method to do

* multiple selects and unselect to remove them.

* You should capture a column header click so that you can make sure

* the correct rows are selected after the sort

* */

protected override void OnMouseDown(Sys tem.Windows.For ms.MouseEventAr gs e)

{

DataGrid.HitTes tInfo hti = this.HitTest(e. X, e.Y);

if( hti.Type == HitTestType.Cel l )

{

// set up the data row view

DataGridCell clickedCell = new DataGridCell();

clickedCell.Row Number = hti.Row;

clickedCell.Col umnNumber = hti.Column;

this.CurrentCel l = clickedCell;

BindingManagerB ase bm = BindingContext[this.DataSource , this.DataMember];

DataRowView drv = (DataRowView) bm.Current;

// if click on the append row (couldn't get it to not show) do nothing

if( drv[this.id_field].ToString() == "" )

return;

// otherwise select or unselect the row and add or remove it from the array

else

{

// if the row is currently in the selection list

if( this.data_id_ar ray.Contains( Int32.Parse(
drv[this.id_field].ToString() ) ) )

{

this.data_id_ar ray.Remove( Int32.Parse( drv[this.id_field].ToString() ) );

this.UnSelect( hti.Row );

// for single selects, clear the last selected row

if( !this.multisele ct )

{

this.lastrow = -1;

this.lastID = -1;

}

}

// if it is not in the selection list

else

{

this.data_id_ar ray.Add( Int32.Parse( drv[this.id_field].ToString() ) );

this.Select( hti.Row );

// for single selects, unselect the old, remove it from the list

// and update lastrow

if( !this.multisele ct )

{

if( this.lastrow != -1 )

{

this.UnSelect( this.lastrow );

this.data_id_ar ray.Remove( this.lastID );

}

this.lastrow = hti.Row;

this.lastID = Int32.Parse( drv[this.id_field].ToString() );

}

}

}

}

// sort and then fix the selections (since rows have changed)

else if( hti.Type == HitTestType.Col umnHeader )

{

base.OnMouseDow n(e);

// this.RefreshSel ects();

}

else

{

base.OnMouseDow n(e);

}

}

protected override void OnCurrentCellCh anged(System.Ev entArgs e)

{

base.OnCurrentC ellChanged(e);

if(Control.Mous eButtons != MouseButtons.Le ft)

{

Rectangle rect = this.GetCellBou nds(this.Curren tCell);

MouseEventArgs e1 = new MouseEventArgs( MouseButtons.Le ft, 0, OFFSET, rect.Y
+ OFFSET, 0);

OnMouseDown(e1) ;

}

}

}


/// <summary>

/// This section of is very basic, but effective. By overriding the Edit
function, a cell in the column

/// cannot become active for editing, allowing the datagrid events to be
handled.

/// </summary>

public class DataGridNoActiv eCellColumn : DataGridTextBox Column

{

protected override void Edit(System.Win dows.Forms.Curr encyManager source,

int rowNum, System.Drawing. Rectangle bounds, bool readOnly, string
instantText,

bool cellIsVisible)

{

// Empty. Do NOT call the base class!

}

}
Nov 15 '05 #1
2 9921
Hi Chris,

Just some general observations:

1. The grid itself cannot modify data it knows nothing about. Therefore,
it's your code that actually corrupts the array list. Set breakpoints in
every function that modifies the list of identifiers and run the application
in the debugger to see how this happens.

2. The new row can be hidden by the following code:

CurrencyManager cm = (CurrencyManage r)BindingContex t[this.DataSource ,
this.DataMember];
DataView view = (DataView)cm.Li st;
view.AllowNew = false;

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Chris Plowman" <ch***********@ hilton.com> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
Hi all,
I was wondering if anyone can help me with a really annoying problem I have been having. I made a derived datagrid class that will select the row when a user clicks anywhere on a cell (multi-select without modifier keys). I
got that working fine, but I also wanted to keep rows selected after a sort, which I do by storing the row's id in an arraylist. The idea was to do the sort and then go back and re-select the rows with that row id, which will
now be in a different location. The problem is that to walk through the
datagrid I have to set the current cell and for some reason that is messing up the array's values. I am at a total loss. Anyone know why this is
happening and/or know a fix? Have I screwed the code up somewhere? Any
help would be dearly appreciated. Here is my code:

public class RowSelectDataGr id : DataGrid

{

private const int OFFSET = 5;

private bool multiselect;

private string id_field;

private ArrayList data_id_array;
// these are used for single selects

private int lastrow;

private int lastID;

/// <summary>

/// Constructor for the row select data grid

/// </summary>

/// <param name="id_field_ name">Name of the field that holds a record id for your dataset</param>

/// <param name="multi">Bo olean value to enable the multiselect feature of
the datagrid</param>

public RowSelectDataGr id(string id_field_name, bool multi) : base()

{

this.data_id_ar ray = new ArrayList();

this.lastrow = -1; // default value

this.lastID = -1; // default value

this.id_field = id_field_name;

this.multiselec t = multi;

}

/// <summary>

/// Select the rows that contain ids in the selections array of ints

/// </summary>

/// <param name="selection s">ArrayList of the record ids to be
selected</param>

public void SetSelectionLis t( ArrayList selections )

{

this.data_id_ar ray.Clear();

foreach( int id in selections )

{

if( this.multiselec t )

this.data_id_ar ray.Add( id );

else // single select only has 1 entry max

this.data_id_ar ray[0] = id;

}

RefreshSelects( );

}

/// <summary>

/// Get or Set the multiselect datagrid option

/// </summary>

public bool MultiSelect

{

get

{

return this.multiselec t;

}

set

{

// when this changes, the selections are cleared

this.data_id_ar ray.Clear();

this.multiselec t = value;

}

}

/// <summary>

/// Reprocess the entire datagrid line by line, selecting previously

/// specified rows

/// </summary>

public void RefreshSelects( )

{

// Debugging -- this works, just selects the wrong row

// this.Select(thi s.lastrow);

// go through each line and select if it is in the list, unselect otherwise
int iRow;

DataGridCell checkCell = new DataGridCell();

checkCell.Colum nNumber = 1;

BindingManagerB ase bm;

DataRowView drv;

DataTable myTable = ((DataSet) this.DataSource ).Tables[this.DataMember];

for( iRow = 0; iRow < myTable.Rows.Co unt; iRow++ )

{

// position at the first column of the current row

checkCell.RowNu mber = iRow;

this.CurrentCel l = checkCell; // *************** ** THIS IS THE PROBLEM
LINE -- HOW DOES IT CHANGE THE PRIVATE ARRAYLIST???

bm = BindingContext[this.DataSource , this.DataMember];

drv = (DataRowView) bm.Current;

// if this row has an id in the selection list, make sure it is selected

if( this.data_id_ar ray.Contains( Int32.Parse(
drv[this.id_field].ToString() ) ) )

{

this.Select( iRow );

// if single select, update the row (don't need to update the value)

if( !this.multisele ct )

this.lastrow = iRow;

}

// else

// this.UnSelect( iRow );

}

}

/*

* Note that we can just use the datagrid's select(int row) method to do

* multiple selects and unselect to remove them.

* You should capture a column header click so that you can make sure

* the correct rows are selected after the sort

* */

protected override void OnMouseDown(Sys tem.Windows.For ms.MouseEventAr gs e)

{

DataGrid.HitTes tInfo hti = this.HitTest(e. X, e.Y);

if( hti.Type == HitTestType.Cel l )

{

// set up the data row view

DataGridCell clickedCell = new DataGridCell();

clickedCell.Row Number = hti.Row;

clickedCell.Col umnNumber = hti.Column;

this.CurrentCel l = clickedCell;

BindingManagerB ase bm = BindingContext[this.DataSource , this.DataMember];

DataRowView drv = (DataRowView) bm.Current;

// if click on the append row (couldn't get it to not show) do nothing

if( drv[this.id_field].ToString() == "" )

return;

// otherwise select or unselect the row and add or remove it from the array
else

{

// if the row is currently in the selection list

if( this.data_id_ar ray.Contains( Int32.Parse(
drv[this.id_field].ToString() ) ) )

{

this.data_id_ar ray.Remove( Int32.Parse( drv[this.id_field].ToString() ) );

this.UnSelect( hti.Row );

// for single selects, clear the last selected row

if( !this.multisele ct )

{

this.lastrow = -1;

this.lastID = -1;

}

}

// if it is not in the selection list

else

{

this.data_id_ar ray.Add( Int32.Parse( drv[this.id_field].ToString() ) );

this.Select( hti.Row );

// for single selects, unselect the old, remove it from the list

// and update lastrow

if( !this.multisele ct )

{

if( this.lastrow != -1 )

{

this.UnSelect( this.lastrow );

this.data_id_ar ray.Remove( this.lastID );

}

this.lastrow = hti.Row;

this.lastID = Int32.Parse( drv[this.id_field].ToString() );

}

}

}

}

// sort and then fix the selections (since rows have changed)

else if( hti.Type == HitTestType.Col umnHeader )

{

base.OnMouseDow n(e);

// this.RefreshSel ects();

}

else

{

base.OnMouseDow n(e);

}

}

protected override void OnCurrentCellCh anged(System.Ev entArgs e)

{

base.OnCurrentC ellChanged(e);

if(Control.Mous eButtons != MouseButtons.Le ft)

{

Rectangle rect = this.GetCellBou nds(this.Curren tCell);

MouseEventArgs e1 = new MouseEventArgs( MouseButtons.Le ft, 0, OFFSET, rect.Y + OFFSET, 0);

OnMouseDown(e1) ;

}

}

}


/// <summary>

/// This section of is very basic, but effective. By overriding the Edit
function, a cell in the column

/// cannot become active for editing, allowing the datagrid events to be
handled.

/// </summary>

public class DataGridNoActiv eCellColumn : DataGridTextBox Column

{

protected override void Edit(System.Win dows.Forms.Curr encyManager source,

int rowNum, System.Drawing. Rectangle bounds, bool readOnly, string
instantText,

bool cellIsVisible)

{

// Empty. Do NOT call the base class!

}

}


Nov 15 '05 #2
thanks for the info -- I was able to fix the problem using a temp variable
in the function itself as a copy of the datagrid's local arraylist and using
that. At the end of the function I overwrite the now screwed up local
arraylist with the copy, restoring it to its original data. I also tracked
down the error is caused because setting the current cell of the datagrid
(this.CurrentCe ll = checkCell;) causes the OnCurrentCellCh ange event to
fire, which in turn calls the mousedown event! Pitiful oversight on my
part. Thanks for the help.

Thank you for the info about hiding the new row, I will definetly give that
a try.

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.c om> wrote
in message news:e7******** ******@TK2MSFTN GP10.phx.gbl...
Hi Chris,

Just some general observations:

1. The grid itself cannot modify data it knows nothing about. Therefore,
it's your code that actually corrupts the array list. Set breakpoints in
every function that modifies the list of identifiers and run the application in the debugger to see how this happens.

2. The new row can be hidden by the following code:

CurrencyManager cm = (CurrencyManage r)BindingContex t[this.DataSource ,
this.DataMember];
DataView view = (DataView)cm.Li st;
view.AllowNew = false;

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Chris Plowman" <ch***********@ hilton.com> wrote in message
news:%2******** *******@TK2MSFT NGP11.phx.gbl.. .
Hi all,
I was wondering if anyone can help me with a really annoying problem I

have
been having. I made a derived datagrid class that will select the row

when
a user clicks anywhere on a cell (multi-select without modifier keys). I got that working fine, but I also wanted to keep rows selected after a

sort,
which I do by storing the row's id in an arraylist. The idea was to do

the
sort and then go back and re-select the rows with that row id, which will now be in a different location. The problem is that to walk through the
datagrid I have to set the current cell and for some reason that is

messing
up the array's values. I am at a total loss. Anyone know why this is
happening and/or know a fix? Have I screwed the code up somewhere? Any
help would be dearly appreciated. Here is my code:

public class RowSelectDataGr id : DataGrid

{

private const int OFFSET = 5;

private bool multiselect;

private string id_field;

private ArrayList data_id_array;
// these are used for single selects

private int lastrow;

private int lastID;

/// <summary>

/// Constructor for the row select data grid

/// </summary>

/// <param name="id_field_ name">Name of the field that holds a record id

for
your dataset</param>

/// <param name="multi">Bo olean value to enable the multiselect feature of the datagrid</param>

public RowSelectDataGr id(string id_field_name, bool multi) : base()

{

this.data_id_ar ray = new ArrayList();

this.lastrow = -1; // default value

this.lastID = -1; // default value

this.id_field = id_field_name;

this.multiselec t = multi;

}

/// <summary>

/// Select the rows that contain ids in the selections array of ints

/// </summary>

/// <param name="selection s">ArrayList of the record ids to be
selected</param>

public void SetSelectionLis t( ArrayList selections )

{

this.data_id_ar ray.Clear();

foreach( int id in selections )

{

if( this.multiselec t )

this.data_id_ar ray.Add( id );

else // single select only has 1 entry max

this.data_id_ar ray[0] = id;

}

RefreshSelects( );

}

/// <summary>

/// Get or Set the multiselect datagrid option

/// </summary>

public bool MultiSelect

{

get

{

return this.multiselec t;

}

set

{

// when this changes, the selections are cleared

this.data_id_ar ray.Clear();

this.multiselec t = value;

}

}

/// <summary>

/// Reprocess the entire datagrid line by line, selecting previously

/// specified rows

/// </summary>

public void RefreshSelects( )

{

// Debugging -- this works, just selects the wrong row

// this.Select(thi s.lastrow);

// go through each line and select if it is in the list, unselect

otherwise

int iRow;

DataGridCell checkCell = new DataGridCell();

checkCell.Colum nNumber = 1;

BindingManagerB ase bm;

DataRowView drv;

DataTable myTable = ((DataSet) this.DataSource ).Tables[this.DataMember];

for( iRow = 0; iRow < myTable.Rows.Co unt; iRow++ )

{

// position at the first column of the current row

checkCell.RowNu mber = iRow;

this.CurrentCel l = checkCell; // *************** ** THIS IS THE PROBLEM
LINE -- HOW DOES IT CHANGE THE PRIVATE ARRAYLIST???

bm = BindingContext[this.DataSource , this.DataMember];

drv = (DataRowView) bm.Current;

// if this row has an id in the selection list, make sure it is selected

if( this.data_id_ar ray.Contains( Int32.Parse(
drv[this.id_field].ToString() ) ) )

{

this.Select( iRow );

// if single select, update the row (don't need to update the value)

if( !this.multisele ct )

this.lastrow = iRow;

}

// else

// this.UnSelect( iRow );

}

}

/*

* Note that we can just use the datagrid's select(int row) method to do

* multiple selects and unselect to remove them.

* You should capture a column header click so that you can make sure

* the correct rows are selected after the sort

* */

protected override void OnMouseDown(Sys tem.Windows.For ms.MouseEventAr gs e)
{

DataGrid.HitTes tInfo hti = this.HitTest(e. X, e.Y);

if( hti.Type == HitTestType.Cel l )

{

// set up the data row view

DataGridCell clickedCell = new DataGridCell();

clickedCell.Row Number = hti.Row;

clickedCell.Col umnNumber = hti.Column;

this.CurrentCel l = clickedCell;

BindingManagerB ase bm = BindingContext[this.DataSource , this.DataMember];
DataRowView drv = (DataRowView) bm.Current;

// if click on the append row (couldn't get it to not show) do nothing

if( drv[this.id_field].ToString() == "" )

return;

// otherwise select or unselect the row and add or remove it from the

array

else

{

// if the row is currently in the selection list

if( this.data_id_ar ray.Contains( Int32.Parse(
drv[this.id_field].ToString() ) ) )

{

this.data_id_ar ray.Remove( Int32.Parse( drv[this.id_field].ToString() ) );
this.UnSelect( hti.Row );

// for single selects, clear the last selected row

if( !this.multisele ct )

{

this.lastrow = -1;

this.lastID = -1;

}

}

// if it is not in the selection list

else

{

this.data_id_ar ray.Add( Int32.Parse( drv[this.id_field].ToString() ) );

this.Select( hti.Row );

// for single selects, unselect the old, remove it from the list

// and update lastrow

if( !this.multisele ct )

{

if( this.lastrow != -1 )

{

this.UnSelect( this.lastrow );

this.data_id_ar ray.Remove( this.lastID );

}

this.lastrow = hti.Row;

this.lastID = Int32.Parse( drv[this.id_field].ToString() );

}

}

}

}

// sort and then fix the selections (since rows have changed)

else if( hti.Type == HitTestType.Col umnHeader )

{

base.OnMouseDow n(e);

// this.RefreshSel ects();

}

else

{

base.OnMouseDow n(e);

}

}

protected override void OnCurrentCellCh anged(System.Ev entArgs e)

{

base.OnCurrentC ellChanged(e);

if(Control.Mous eButtons != MouseButtons.Le ft)

{

Rectangle rect = this.GetCellBou nds(this.Curren tCell);

MouseEventArgs e1 = new MouseEventArgs( MouseButtons.Le ft, 0, OFFSET,

rect.Y
+ OFFSET, 0);

OnMouseDown(e1) ;

}

}

}


/// <summary>

/// This section of is very basic, but effective. By overriding the Edit function, a cell in the column

/// cannot become active for editing, allowing the datagrid events to be
handled.

/// </summary>

public class DataGridNoActiv eCellColumn : DataGridTextBox Column

{

protected override void Edit(System.Win dows.Forms.Curr encyManager source,
int rowNum, System.Drawing. Rectangle bounds, bool readOnly, string
instantText,

bool cellIsVisible)

{

// Empty. Do NOT call the base class!

}

}

Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2520
by: Joe Bloggs | last post by:
I am trying display the contents of a table in a web page, select certain rows from that table and then display the fields that I have selected (now table columns) as text in a Label object. Amazingly I have managed to display the table - no problem, I can select rows - no problem, BUT I can't work out how to display more than one of the fields (now columns in the table in the web page). I can display one field OK, but not more than one...
5
2592
by: Jeff | last post by:
IDE: VS 2003 :NET OS: XP Pro My app have a form with a tab-control on it. The tab-control have 2 tabpages. One of the tabpages displays a datagrid, and the other tabpage displays details (order date, name, address etc) about the selected row in the datagrid... My problem is when I enter a new record in the details tabpage (saves data to database), and go back to the datagrid. Only the data from the PM-table
2
2475
by: Steve Chatham | last post by:
I use the following code: Private Sub RbtnExport_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RbtnExport.SelectedIndexChanged Dim sFile As String = Session("User") & "-Customer List-" & Today() sFile = sFile.Replace("/", "") RbtnExport.Visible = False Select Case RbtnExport.SelectedItem.Value Case "Excel" Response.ContentType = "application/x-msexcel"
4
2121
by: The Alchemist | last post by:
I am having a problem with a dynamically-generated Datagrid. It is important to point out that this problem does not exist with a design-time created Datagrid, but only with a dynamically generated Datagrid in a Web Custom Control (WCC) : The datagrid has LinkButton Column which has a select LinkButton for each row. When this button is clicked, the Datagrid raises its 'ItemCommand' event which captures the information for that row and...
7
2002
by: Neo Geshel | last post by:
Greetings. I have a serious problem. I have multiple sets of tables, several of which are chained more than two tables deep. That is, I have a parent, a child, and a great-grandchild table. Currently, I am allowing the parent to be edited by itself. In order to get to a child table, a user needs to select a specific parent table ID. I have set this up using panels, and putting a drop-down list in the first panel, with its contents...
7
3341
by: Girish | last post by:
OK.. phew. Playing with data grids for the past few days has been fun and a huge learning experience.. My problem. I have a requirement to display a gird with a gird. Within the embedded grid, theres a requirement to show a drop down menu list (this is a control I downloaded online) in one of the columns. For the purposes of this question, Ive implemented the drop down menu as a drop down list instead. Ive got all this working at this...
0
2085
by: rupalirane07 | last post by:
Both grids displays fine. But the problem is only parent datagrid sorting works fine but when i clik on child datagrid for sorting it gives me error: NullReferenceException error Any help........pls urgent ========================================================= <%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm3.aspx.vb" Inherits="TestDatagrids.WebForm3"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">...
1
1913
by: Brock | last post by:
Thanks in advance... (you can see a screenshot of what my form looks like currently at http://www.juggernautical.com/DataGrid.jpg - the Datalist is super-imposed in 'design view' but the DataGrid is the actual running of the page) I've almost got this working (?) but need a little help. I have an .aspx page that has a DataGrid listing employees with a "Select" button that is to be used to populate the DataList to the right of the DataGrid...
2
6589
by: =?Utf-8?B?Y3JlYXZlczA2MjI=?= | last post by:
I have a nested datagrid in a xaml file, the parent datagrid loads the vendor information and the details loads the documents for that vendor in a datagrid. Everything is working fine until I click in the child datagrid and then go to the combobox and choose another vendor. When the new vendor is loaded nothing shows in the datagrid but the itemsource shows the info is there. Know if I click on the child cell and then click back on the...
0
8697
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8622
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9184
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8930
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7767
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6538
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4634
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2359
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2013
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.