473,903 Members | 4,300 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 9936
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
2532
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
2605
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
2482
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
2136
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
2022
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
3359
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
2097
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
1927
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
6601
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
10003
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
9851
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
10882
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5897
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6099
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4732
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4312
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3327
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.