Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
GeneralRe: Custom control's property problem Pin
Xmen Real 1-Jan-09 0:55
professional Xmen Real 1-Jan-09 0:55 
GeneralRe: Custom control's property problem Pin
Pedram Behroozi1-Jan-09 1:21
Pedram Behroozi1-Jan-09 1:21 
GeneralRe: Custom control's property problem Pin
Xmen Real 1-Jan-09 1:51
professional Xmen Real 1-Jan-09 1:51 
GeneralRe: Custom control's property problem Pin
Eddy Vluggen2-Jan-09 2:07
professionalEddy Vluggen2-Jan-09 2:07 
GeneralRe: Custom control's property problem Pin
Xmen Real 2-Jan-09 3:22
professional Xmen Real 2-Jan-09 3:22 
GeneralRe: Custom control's property problem Pin
Eddy Vluggen2-Jan-09 21:53
professionalEddy Vluggen2-Jan-09 21:53 
GeneralRe: Custom control's property problem Pin
Xmen Real 2-Jan-09 22:02
professional Xmen Real 2-Jan-09 22:02 
QuestionDatagrid Combo box binding Pin
mrcooll31-Dec-08 2:46
mrcooll31-Dec-08 2:46 
hi ,
i have this problem,
i have a grid contains project combo box and projectStage combo,when i select the project from first combo it will filter the second combo values,
i got it but when i m selecting the project for the next row it filter all second combo values even in the first row, here is my code

private void FrmMain_Load(object sender, EventArgs e)
{
EMS.Timesheet timesheet = new WindowsApplication1.EMS.Timesheet();
dsInitialData = timesheet.GetInitialData(UserProfile.EmployeeId);

bscProject.DataSource = dsInitialData.Tables["Projects"];
dgvTimeAttProject.DataSource = bscProject;
dgvTimeAttProject.DisplayMember = "ProjectRef";
dgvTimeAttProject.ValueMember = "ProjectId";

bscStage.DataSource = dsInitialData.Tables["Stages"]; ;
//bscStage.Filter = "ProjectTypeId=-1";
dgvTimeAttStage.DataSource = bscStage;
dgvTimeAttStage.DisplayMember = "StageName";
dgvTimeAttStage.ValueMember = "ProjectStageId";
}

private void dgvTimeAtt_CellValueChanged(object sender, DataGridViewCellEventArgs e)
{
try
{
if (e.RowIndex == -1)
return;


if (dgvTimeAttProject.Index == e.ColumnIndex)
{
int ProjectId = (int)dgvTimeAtt.Rows[e.RowIndex].Cells[dgvTimeAttProject.Index].Value;
int projectTypeId = GetProjectType(ProjectId);
bscStage.Filter = "ProjectTypeId=" + projectTypeId.ToString();
bscActivity.Filter = "ProjectTypeId= " + projectTypeId.ToString();

//dgvTimeAttStage.DataSource = dsInitialData.Tables["Stages"].Select("ProjectTypeId=" + projectTypeId.ToString());
//dgvTimeAttActivity.DataSource = dsInitialData.Tables["Activities"].Select("ProjectTypeId= " + projectTypeId.ToString());
}
}

catch (Exception ex) { throw ex; }

}

so how can i overcome this problem?
AnswerRe: Datagrid Combo box binding Pin
mrcooll31-Dec-08 5:13
mrcooll31-Dec-08 5:13 
QuestionNeed regular expression for spliting string Pin
Ramesh Ramalingam31-Dec-08 1:45
Ramesh Ramalingam31-Dec-08 1:45 
AnswerRe: Need regular expression for spliting string Pin
Rob Philpott31-Dec-08 1:50
Rob Philpott31-Dec-08 1:50 
GeneralRe: Need regular expression for spliting string Pin
PIEBALDconsult31-Dec-08 4:12
mvePIEBALDconsult31-Dec-08 4:12 
GeneralRe: Need regular expression for spliting string Pin
#realJSOP31-Dec-08 4:32
mve#realJSOP31-Dec-08 4:32 
AnswerRe: Need regular expression for spliting string Pin
User 665831-Dec-08 1:59
User 665831-Dec-08 1:59 
AnswerRe: Need regular expression for spliting string Pin
#realJSOP31-Dec-08 4:31
mve#realJSOP31-Dec-08 4:31 
GeneralRe: Need regular expression for spliting string Pin
PIEBALDconsult31-Dec-08 8:44
mvePIEBALDconsult31-Dec-08 8:44 
GeneralRe: Need regular expression for spliting string [modified] Pin
#realJSOP31-Dec-08 8:51
mve#realJSOP31-Dec-08 8:51 
AnswerRe: Need regular expression for spliting string Pin
Guffa31-Dec-08 15:52
Guffa31-Dec-08 15:52 
GeneralRe: Need regular expression for spliting string Pin
PIEBALDconsult31-Dec-08 16:46
mvePIEBALDconsult31-Dec-08 16:46 
GeneralRe: Need regular expression for spliting string Pin
Guffa31-Dec-08 18:16
Guffa31-Dec-08 18:16 
GeneralRe: Need regular expression for spliting string Pin
Ramesh Ramalingam1-Jan-09 18:38
Ramesh Ramalingam1-Jan-09 18:38 
QuestionProblem With Embedding .NET ActiveXcontrol (Window user control) inside html Pin
Dattatraya K31-Dec-08 1:25
Dattatraya K31-Dec-08 1:25 
Questionhow can I parse a queary into parts to write a search parsing Pin
D V kirankumar31-Dec-08 0:21
D V kirankumar31-Dec-08 0:21 
AnswerRe: how can I parse a queary into parts to write a search parsing Pin
User 665831-Dec-08 0:37
User 665831-Dec-08 0:37 
GeneralRe: how can I parse a queary into parts to write a search parsing Pin
D V kirankumar1-Jan-09 18:11
D V kirankumar1-Jan-09 18:11 

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.