Click here to Skip to main content
15,905,563 members
Home / Discussions / C#
   

C#

 
GeneralRe: Adding items to ListView Pin
Sathesh Sakthivel5-Jun-07 3:42
Sathesh Sakthivel5-Jun-07 3:42 
AnswerRe: Adding items to ListView Pin
S. Senthil Kumar5-Jun-07 4:33
S. Senthil Kumar5-Jun-07 4:33 
GeneralRe: Adding items to ListView Pin
Rajesh R Subramanian5-Jun-07 19:49
professionalRajesh R Subramanian5-Jun-07 19:49 
GeneralRe: Adding items to ListView Pin
S. Senthil Kumar6-Jun-07 4:40
S. Senthil Kumar6-Jun-07 4:40 
GeneralRe: Adding items to ListView Pin
Rajesh R Subramanian6-Jun-07 18:45
professionalRajesh R Subramanian6-Jun-07 18:45 
QuestionAdding button to datagridview Pin
sulabh20205-Jun-07 2:47
sulabh20205-Jun-07 2:47 
AnswerRe: Adding button to datagridview Pin
Seishin#5-Jun-07 4:11
Seishin#5-Jun-07 4:11 
AnswerRe: Adding button to datagridview Pin
Hesham Yassin6-Jun-07 8:14
Hesham Yassin6-Jun-07 8:14 
QuestionReporting Service MultiLanguage? Pin
ArunkumarSundaravelu5-Jun-07 2:04
ArunkumarSundaravelu5-Jun-07 2:04 
QuestionInternet Explorer Toolbar, tutorial anywere? Pin
Jens R. Nielsen5-Jun-07 1:39
Jens R. Nielsen5-Jun-07 1:39 
AnswerRe: Internet Explorer Toolbar, tutorial anywere? Pin
Jens R. Nielsen6-Jun-07 6:26
Jens R. Nielsen6-Jun-07 6:26 
QuestionExcel worksheet Pin
Ankit Aneja5-Jun-07 1:39
Ankit Aneja5-Jun-07 1:39 
QuestionHow to reopen program automatically Pin
GreenblitZ5-Jun-07 1:36
GreenblitZ5-Jun-07 1:36 
AnswerRe: How to reopen program automatically Pin
CPallini5-Jun-07 1:55
mveCPallini5-Jun-07 1:55 
GeneralRe: How to reopen program automatically Pin
GreenblitZ5-Jun-07 2:30
GreenblitZ5-Jun-07 2:30 
GeneralRe: How to reopen program automatically Pin
Vikram A Punathambekar5-Jun-07 4:06
Vikram A Punathambekar5-Jun-07 4:06 
AnswerRe: How to reopen program automatically Pin
Seishin#5-Jun-07 4:16
Seishin#5-Jun-07 4:16 
QuestionScheduled command line application Pin
weywe47k375-Jun-07 1:32
weywe47k375-Jun-07 1:32 
AnswerRe: Scheduled command line application Pin
CPallini5-Jun-07 2:02
mveCPallini5-Jun-07 2:02 
AnswerRe: Scheduled command line application Pin
thowra5-Jun-07 4:32
thowra5-Jun-07 4:32 
AnswerRe: Scheduled command line application Pin
Joseph Guadagno5-Jun-07 4:35
Joseph Guadagno5-Jun-07 4:35 
QuestionHave I DataBinding or DataRelation problem? Pin
Tavbi5-Jun-07 1:27
Tavbi5-Jun-07 1:27 
Hi everyone!

In dataset "dsbasis" I have table "ShopGood". I have another table "Good" which don't belong to dataset and contains only important data of ShoopGood for show in datagirdview. I add this table to dataset and I create relation betwen this two tables. I also have more textboxes bounded to dataset and datatable "ShopGood".

My problem is, that when I change position in datagrid, values in textboxes stay unchanged. Can anybody tell me why?
If I set datagrid datasource to the table which textboxes are bounded all works fine.

My code:
DataTable dTable = new DataTable("GoodTable");
// fill datatable for datagrid
dTable = dShopGood.ListOfGood("");
// set datasource
dgrShopGood.DataSource = dTable;
dgrShopGood.DataMember = "";
// create datarelation betwen datatable shown in datagridview and
// table ShoopGood in DSBasis
dsbasis.Tables.Add(dTable);
dsbasis.Relations.Add("rel_ShopGood_GoodTable", dTable.Columns["ID"], dsbasis.ShopGood.Columns["IDGood"]);

// set databindings
txtMark.DataBindings.Add("Text", dsbasis, "ShopGood.Mark", true);
txtName.DataBindings.Add("Text", dsbasis, "ShopGood.Name", true);
// fill dataset for bounded textboxes
dShopGood.CRAllDetail(dsbasis);


Thanks in advance,
Jure Confused | :confused:
QuestionListView iteration problem Pin
talk2robert5-Jun-07 1:01
talk2robert5-Jun-07 1:01 
QuestionCruiseControl.Net Pin
immu55-Jun-07 0:42
immu55-Jun-07 0:42 
QuestionCalling method on control causing problems Pin
Rick van Woudenberg5-Jun-07 0:29
Rick van Woudenberg5-Jun-07 0:29 

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.