Click here to Skip to main content
15,889,281 members
Home / Discussions / C#
   

C#

 
GeneralRe: C# equivalent to CStringList Pin
Colin Angus Mackay2-Sep-04 6:04
Colin Angus Mackay2-Sep-04 6:04 
GeneralRe: C# equivalent to CStringList Pin
Glenn E. Lanier II2-Sep-04 6:28
Glenn E. Lanier II2-Sep-04 6:28 
GeneralRe: C# equivalent to CStringList Pin
Nick Parker2-Sep-04 9:31
protectorNick Parker2-Sep-04 9:31 
GeneralDos commands in C# Pin
exhaulted2-Sep-04 4:31
exhaulted2-Sep-04 4:31 
GeneralRe: Dos commands in C# Pin
mav.northwind2-Sep-04 5:36
mav.northwind2-Sep-04 5:36 
GeneralRe: Dos commands in C# Pin
exhaulted2-Sep-04 6:14
exhaulted2-Sep-04 6:14 
GeneralRe: Dos commands in C# Pin
mav.northwind2-Sep-04 6:28
mav.northwind2-Sep-04 6:28 
GeneralThe Infragistics Web Grid Big BIG problem Pin
Anonymous2-Sep-04 4:20
Anonymous2-Sep-04 4:20 
Mad | :mad: Eek! | :eek: ok, this is for people that have worked with the infragistics web grid. Either this grid is a piece of crap or I have the serious case of stupids..either way all I need is a solution to my problem.
When I go in to add the rows to my datagrid from the front end the dataset does not persist. Let me explain myself.
AS i click the add button on the front end the grid inserts an empty row and triggers the add row row event. In the add row event i have the following code.

this.Retrieve();
DataTable _t = this._dsCateringRev.Tables[e.Row.Band.BaseTableName];
this._row = (DsCateringRev.CateringRevMinimumPeakRow)_t.NewRow();
_row.propid = System.Convert.ToInt32(this._hotel);
_row.appyear = System.Convert.ToInt32(this._processYear);
_row.RevType= "Peak";
//this._dsCateringRev.CateringRevMinimumPeak.Rows.Add( _row );
e.Row.DataKey = _row[_t.PrimaryKey[0]];
e.Row.Cells.FromKey(_t.PrimaryKey[0].ColumnName).Value = e.Row.DataKey;
this._dsCateringRev.CateringRevMinimumPeak.Rows.Add( _row );

This is more or less according the the sample app that came with the grid. Then the grid executes the updatecellbatch event. Here is the code for that:

DsCateringRev.CateringRevMinimumPeakRow row = null;
DataTable table=null;
//this.Retrieve();
object key=e.Cell.Row.DataKey;
table=this._dsCateringRev.Tables[e.Cell.Band.BaseTableName];
//Try to find the row that needs to be updated.
if (key!=null)
row = (DsCateringRev.CateringRevMinimumPeakRow)table.Rows.Find(key);
if(row!=null)
{
try
{
row[e.Cell.Column.Key] = e.Cell.Value;
}
catch( Exception _ex )
{
this._dsCateringRev.RejectChanges();
}
}

}
Well the problem is that the first time I rub this the dataset has the rows that i just added. On subsequent runs the dataset.datatable.rows.count = 0. In other words the dataset if empty.

Got any words of advice.

Thanks
Sameer
GeneralRe: The Infragistics Web Grid Big BIG problem Pin
Dave Kreskowiak2-Sep-04 5:50
mveDave Kreskowiak2-Sep-04 5:50 
GeneralDouble Buffering API Theme paint problem Pin
Tristan Rhodes2-Sep-04 1:52
Tristan Rhodes2-Sep-04 1:52 
GeneralRe: Double Buffering API Theme paint problem Pin
Werdna2-Sep-04 6:06
Werdna2-Sep-04 6:06 
GeneralRe: Double Buffering API Theme paint problem Pin
Tristan Rhodes2-Sep-04 8:59
Tristan Rhodes2-Sep-04 8:59 
Generalscroll bars in a picture box Pin
gijoebijoe2-Sep-04 1:30
gijoebijoe2-Sep-04 1:30 
GeneralRe: scroll bars in a picture box Pin
Sebastian Schneider2-Sep-04 2:27
Sebastian Schneider2-Sep-04 2:27 
GeneralRe: scroll bars in a picture box Pin
Sebastian Schneider2-Sep-04 2:37
Sebastian Schneider2-Sep-04 2:37 
GeneralMy images are gone (c#) Pin
adnanh752-Sep-04 0:42
adnanh752-Sep-04 0:42 
GeneralRe: My images are gone (c#) Pin
exhaulted2-Sep-04 1:47
exhaulted2-Sep-04 1:47 
GeneralRe: My images are gone (c#) Pin
adnanh752-Sep-04 1:53
adnanh752-Sep-04 1:53 
GeneralRe: My images are gone (c#) Pin
exhaulted2-Sep-04 3:38
exhaulted2-Sep-04 3:38 
GeneralRe: My images are gone (c#) Pin
mav.northwind2-Sep-04 3:46
mav.northwind2-Sep-04 3:46 
GeneralRe: My images are gone (c#) Pin
adnanh752-Sep-04 5:08
adnanh752-Sep-04 5:08 
GeneralRe: My images are gone (c#) Pin
exhaulted2-Sep-04 6:16
exhaulted2-Sep-04 6:16 
GeneralRe: My images are gone (c#) Pin
mav.northwind2-Sep-04 10:07
mav.northwind2-Sep-04 10:07 
GeneralChanging style of panel's scrollbar Pin
SaravananPV1-Sep-04 18:51
SaravananPV1-Sep-04 18:51 
QuestionHow to call an external .exe file from C# Pin
pavanarza11-Sep-04 18:25
pavanarza11-Sep-04 18:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.